13.07.2015 Views

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

Naming and Directory Services (DNS, NIS, and LDAP)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

EXAMPLE 3–2 Sample named.conf File Entry for rndc(Continued)key "rndc-key" {algorithm hmac-md5;secret "qPWZ3Ndl81aBRY9AmJhVtU==";};Differences in the Control ChannelsBoth the ndc <strong>and</strong> the rndc utilities use a control channel to send comm<strong>and</strong>s to <strong>and</strong>retrieve information from a name server. However, there are differences between theutilities.■■■In BIND 8, ndc can use AF_UNIX domain sockets (UNIX control channel) orTCP/IP sockets (inet control channel). By default, ndc does not need any supportin /etc/named.conf, because BIND 8 servers use a UNIX domain socket with apath (/var/run/ndc.d/ndc) compiled into in.named.For BIND 9, however, rndc only uses an authenticated TCP/IP inet controlchannel <strong>and</strong> so is not backward compatible with BIND 8. There is no UNIX domainsocket support for control channels in BIND 9 servers.When using rndc, you need to specify a ’key’ clause to communicate with thename server. It is m<strong>and</strong>atory that the BIND 9 server <strong>and</strong> the rndc client share thesame key (defined both in /etc/named.conf <strong>and</strong> /etc/rndc.conf). Using theBIND 8 controls entry in BIND 9 will result in an error message.Some comm<strong>and</strong> options have changed from the ndc to the rndc implementation.This includes the -c option, which has a different syntax in BIND 9. Therefore, tospecify the control channel in BIND 9, use rndc -s -p .Comm<strong>and</strong>s of BIND 9 rndcThe following list describes the rndc comm<strong>and</strong>s.reloadreload zone [class [view]]refresh zone [class [view]]reconfigstatsquerylogdumpdbstopReload configuration file <strong>and</strong> zonesReload a single zoneSchedule immediate maintenance for a zoneReload configuration file <strong>and</strong> new zones onlyWrite server statistics to the statistics fileToggle query loggingDump cache(s) to the dump file (named_dump.db)Save pending updates to master files <strong>and</strong> stop theserverChapter 3 • <strong>DNS</strong> Setup <strong>and</strong> Administration (Reference) 51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!