Host does not resolve with DHCP WAN

Started by tyrell, July 26, 2024, 12:44:10 PM

Previous topic - Next topic
Hey everyone,

fresh new install of OPNsense and transfering from pfsense.
Right now for Testpurposes im getting an IP Adresse on WAN from x.x.15.1 Subnet (x.x.15.108)
That was working fine in the beginning. I activated Unbound DNS and did the Overrides.
System-Settings-General i have not DNS Servers and "Allow DNS server list to be overridden by DHCP/PPP on WAN" is checked.
Also tried "Do not use the local DNS service as a nameserver for this system" but still OPNsense cannot resolve adresses for the Updates or ping.
System - Gateways - Configuration : There is the Route to 15.1. Status online
Firewall Rules for LAN : Default allow LAN to any rule

The weird thing is this was working. Then it just stopped without doing anything. Then it was working again now it stopped.
I rebooted serveral times. Tried a lot of stuff from other posts that sounded like the same problem.
I cant find the reason.
Firewall Live View shows all green.
Unbound Log shows a lot of : PTR record already exists for the overrides
and these
2024-07-25T14:09:27   Error   unbound   [32600:0] error: module init for module python failed   
2024-07-25T14:09:27   Error   unbound   [32600:0] error: python exception in Py_InitializeFromConfig: init_fs_encoding: failed to get the Python codec of the filesystem encoding
2024-06-24T10:49:38   Error   unbound   [87795:7] error: recvfrom 65 failed: Protocol not available

But as i understand Opnsense system is not using unbound because of the checked option "Allow DNS server list to be overridden by DHCP/PPP"

Driving me crazy hope someone can help



A bit unclear really due to the masking of the WAN net.
Is this WAN IP a public or a private one? It matters because if private, then other infra comes into play.

The WAN IP is a private one.x.x.15.108. The Gateway is x.x.15.1 and is displayed on the dashboard as online.
The weird thing is it was working before. I tried to ping 8.8.8.8 also this is not working anymore.

All devices on the x.x.15.1/24 subnet are allow to use the internet. i double checked this again.

Well, if the wan is a private address then it follows that it is behind other devices in charge of the routing for all devices. So you can see how it failing now could be a result of a change somewhere else.
For your OPN test install I suggest the usual basic diagnostics then from a console. See the route table, try to ping out, trace the route, etc.

I found the problem! Stupid me created a VLAN with the same subnet x.x.15.1/24
Thanks for your help