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.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration

Security

Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting

IPv6



DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu

Flylib.com © 2008-2020.
If you may any questions please contact us: flylib@qtcs.net