Redhat DNS debug
BIND Troubleshooting Commands
There are four commands used with BIND: named, rndc, dig and host
named
named is used to start, stop and reset the DNS server using the daemon in /usr/sbin. This is controlled by the script in /etc/init.d/.
Dig and Host
Dig and Host are successors to nslookup.
dig is used to check that a request is handled. Passing it an address dig will return its IP.
rndc
Running rndc on its own lists all of the options that can be used.
- status - shows the status if the DNS server
- flush - flushes the previous config and cache
- reload - restarts the DNS with the new config
- stop / start - stops and starts the DNS