OPNsense Forum

English Forums => General Discussion => Topic started by: mvdheijkant on May 04, 2022, 08:30:31 PM

Title: How to remove provider DNS servers from list
Post by: mvdheijkant on May 04, 2022, 08:30:31 PM
My WAN overview show the list below. I think that it should only show the last 3 lines if I don't want to use my provider dns servers.
In system/settings/general I've added 1.1.1.1, 8.8.8.8 and 9.9.9.9.
all other "networking" settings are disabled.
How can I remove my providers dns-servers.

DNS servers   
84.116.46.23
84.116.46.22
2001:b88:1002::10
2001:b88:1202::10
2001:730:3e42:1000::53
1.1.1.1
8.8.8.8
9.9.9.9
Title: Re: How to remove provider DNS servers from list
Post by: meyergru on May 04, 2022, 09:14:32 PM
Uncheck System->Settings->General->"Allow DNS server list to be overridden by DHCP/PPP on WAN".
Title: Re: How to remove provider DNS servers from list
Post by: mvdheijkant on May 04, 2022, 09:28:40 PM
It must be a bug, because ""Allow DNS server list to be overridden by DHCP/PPP on WAN" is unchecked.
What I did now is enable the setting and than exclude WAN and LAN, which seems to work.
Strange behavior?!
Title: Re: How to remove provider DNS servers from list
Post by: meyergru on May 04, 2022, 09:59:45 PM
I do not let the system DNS servers be served to local interfaces via DHCP, but instead present only the firewall IP there. And when I uncheck the box, I can see that on my OpnSense, /etc/resolv.conf does contain my ISPs name servers.

The first line is 127.0.0.1, but that is expected for local name resolution. I do not use unbound, however, but dnsmasq.

If you are sure that this is a bug, you can file a bug report on github.