[SOLVED] resolv.conf not correctly generated at boot

Started by NiklasCa, March 29, 2021, 12:37:10 PM

Previous topic - Next topic
March 29, 2021, 12:37:10 PM Last Edit: March 29, 2021, 01:16:22 PM by NiklasCa
After boot-up my /etc/resolv.conf looks like this:

nameserver 192.168.1.1

First of all, the domain is not there and no other namservers from Sytem->Settings->General are listed.
Secondly, 192.168.1.1 is my previously used LAN ip, currently I use a 10.x.x.x/24 net for the LAN - so I have no idea where this old IP comes from.

If I run 'ifconfig [WAN device]' down/up or 'confligctl interface reconfigure WAN' then the /etc/resolv.conf looks like I expect:

domain my.local.domain
nameserver 127.0.0.1
nameserver [DNS servers]
nameserver [configured in]
nameserver [Sytem->Settings->General]
...


The Unbound DNS for LAN clients works fine regardless, the only issue I found with the faulty resolv.conf is that checking for firmware/plugin updates is not working.

Is this perhaps a misconfiguration from my part or actually an OPNSense issue?

Thank you in advance.

Wild guess: misconfigured DNS on WireGuard plugin.


Cheers,
Franco

Great guess, that was indeed my problem, thanks!

It's a bit unfortunate that you can't use this setting in a flexible way at the moment, but I'm sure the situation will improve long term as WireGuard FreeBSD support is improved -- right now they do not have a dedicated maintainer.


Cheers,
Franco