When having problems with named (BIND9) and DNS in general, you can do the following.
First edit /etc/named.conf and insert the following lines:
logging {
category "default" { "debug"; };
channel "debug" {
file "/var/tmp/nameddbg" versions 2 size 50m;
print-time yes;
print-category yes;
};
};
This enables logging to the file /var/named/chroot/var/tmp/nameddbg
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
First edit /etc/named.conf and insert the following lines:
logging {
category "default" { "debug"; };
channel "debug" {
file "/var/tmp/nameddbg" versions 2 size 50m;
print-time yes;
print-category yes;
};
};
This enables logging to the file /var/named/chroot/var/tmp/nameddbg
Then you can check out the file with a tail -f.
If needed you can use rndc to check out the server status:
/usr/sbin/rndc statusWill give you an output similar to:
number of zones: 338debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running
Where:
- number of zones is the number of domains the server replies for
- debug level is the current debug level (you can increase it with /usr/sbin/rndc trace
- xfers running are zone's trasnfers currently running
- xfers deferred are zone's transfers delayed
- soa queries in progress are the number of start of authority queries currently in progress
- query logging is the state of the query logging flag (change it via /usr/sbin/rndc querylog )