OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: NiklasCa on March 29, 2021, 12:37:10 PM

Title: [SOLVED] resolv.conf not correctly generated at boot
Post by: NiklasCa on March 29, 2021, 12:37:10 PM
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.
Title: Re: resolv.conf not correctly generated at boot
Post by: franco on March 29, 2021, 01:07:23 PM
Wild guess: misconfigured DNS on WireGuard plugin.


Cheers,
Franco
Title: Re: resolv.conf not correctly generated at boot
Post by: NiklasCa on March 29, 2021, 01:16:05 PM
Great guess, that was indeed my problem, thanks!
Title: Re: [SOLVED] resolv.conf not correctly generated at boot
Post by: franco on March 29, 2021, 01:18:47 PM
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