I’ve got three name servers (master, slave1, slave2) running OpenSUSE 11.1, with BIND 9.5.0-P2. They were set up to be authoritative for several domains and to also be the forwarders for my internal name servers (which are Windows 2003 domain controllers). This has worked fine up until last week.
I used YaST to make a change to a single A record in one of my domains on the master server, and suddenly that server became very unreliable for resolving external domain names. I then switched our internal name servers to forward to slave1 rather than master, and we were back in business.
Later, I added a new domain to master and slave1 using YaST, and slave1 suddenly had the same problem. I now have the internal name servers forwarding to our ISPs name servers.
Digging through the /etc/named.conf files on slave1 and slave2 showed that slave1 had the line
include "/etc/named.d/forwarders.conf";
at the end of the Options section. slave2 does not have this line. When I edited named.conf and removed the line, then did a service named reload, slave1 started working with external names again.
So, looking at the /etc/named.d/forwarders.conf on slave1, I see this:
### /etc/named.d/forwarders.conf file 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.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
forwarders {
10.0.0.20; // slave1's IP address
};
The only forwarder showing up on each server in YaST is the server itself.
In addition, /etc/resolv.conf looks like this:
### /etc/resolv.conf file 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.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
search mydomain.com
So, is there something I should do with the forwarders.conf file to make this work, or is this a bug in YaST, or what? Thanks for any help and enlightenment.
- Mark