DekGenius.com
I l@ve RuBoard Previous Section Next Section

5.7 Adding or Removing Zones Without Restarting or Reloading the Name Server

5.7.1 Problem

You want to add a new zone or delete an existing zone without restarting or reloading a name server.

5.7.2 Solution

Add a new zone statement to named.conf or delete an existing one, then run rndc reconfig (for BIND 9) or ndc reconfig (for BIND 8).

5.7.3 Discussion

It's nice to avoid restarting a busy name server, since restarting clears the cache and takes time on a name server that is authoritative for many zones. A reload, while it doesn't clear the cache, can take time as the name server checks all of its zone data files to see if they've changed. Using reconfig avoids these issues, just scanning named.conf for added or deleted zones.

ndc supports reconfig as of BIND 8.2.2. At BIND 8.2.3, though, you can also use ndc reconfig -noexpired, which prevents the name server from trying to load expired zones.

5.7.4 See Also

"Controlling the Name Server" in Chapter 7 of DNS and BIND.

    I l@ve RuBoard Previous Section Next Section