Let's wrap up a few loose ends. We told you about a tool to convert IP addresses to names so that your debugging output is easier to read. Here is such a tool written in Perl:
It's best not to pipe named.run output into this script with debugging on, because the script will generate its own queries to the name server.
If you do any significant amount of name server debugging, you'll want a tool to turn debugging on and off. The 4.9 and later BIND distributions include a tool called ndc, which can be used for this purpose. The command ndc trace will turn on debugging, or increment the debug level if debugging is already on. The command ndc notrace will turn debugging off.