YaST DNS module has different settings than forwarders.conf

I’ve been experiencing a lot of DNS inconsistencies lately, and I’ve noticed that at times I’m unable to resolve domains that were working before. After some digging I’ve noticed this:

But my forwarders.conf says otherwise:

# cat named.d/forwarders.conf 
### /etc/named.d/forwarders.conf is a symlink to /run/netconfig/bind-forwarders.conf
### autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
#     NETCONFIG_DNS_STATIC_SEARCHLIST
#     NETCONFIG_DNS_STATIC_SERVERS
#     NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
#     NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
### Call "netconfig update -f" to force adjusting of /etc/named.d/forwarders.conf.
forwarders {
	1.1.1.1;
	100.72.3.105;
	100.72.3.101;
};

100.72.3.105 and 100.72.3.101 being my ISP DNSs.

I’ve tried "netconfig update -f but no luck. How can I make both consistent?

They are consistent - the file content matches your netconfig configuration. If you do not want to use DNS servers acquired by DHCP you need to set

NETCONFIG_DNS_POLICY=STATIC

in the /etc/sysconfig/network/config. See man 8 netconfig which is exactly what the comments you quoted tell you.

1 Like

Thank you so much as always for such valuable info, @arvidjaar !!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.