Saturday, January 10, 2009

Bind Notes

BIND tracing

The BIND trace file is named named.run and is located in /var/named by default.

Enabling:
ndc trace (BIND 8.x)
rndc trace (BIND 9.x)
kill -USR1 named_PID (either version)

Disabling:
ndc notrace (BIND 8.x)
rndc notrace (BIND 9.x)
kill -USR2 named_PID (either version)

Flushing individual zone information from the BIND cache

BIND of course clears all cache information with rndc flush. It is possible to clear individual zone or resource record information with rndc flushname.

Example:
rndc flushname example.com example.net

BIND changes for Fedora Core 2

If your BIND name server acts as a slave for DNS zones, you have to change your BIND configuration to locate slave zone files within the slaves subdirectory of your zone data file directory. Otherwise, you may receive errors:

Jun 15 11:29:29 host named[6428]: dumping master file: tmp-XXXXPF7BBb: open: permission denied
Jun 15 11:29:29 host named[6428]: transfer of 'zone/IN' from IP_address#53: failed while receiving responses: permission denied
Jun 15 11:29:29 host named[6428]: transfer of 'zone/IN' from IP_address#53: end of transfer

Old configuration:

zone "zone" IN {
type slave;
file "zone";
masters { IP_address; };
};

New configuration:

zone "zone" IN {
type slave;
file "slaves/zone";
masters { IP_address; };
};

Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: