Promoting a Slave Name Server to the Primary Master

5.25.1 Problem

You want to "promote" a slave name server to be the primary master name server.

5.25.2 Solution

Change the zone statement for the zones you want the slave to be primary master for from type slave to type master, and delete the masters substatements. For example, this zone statement:

zone "foo.example" {
 type slave;
 masters {; };
 file "";

Becomes this zone statement:

zone "foo.example" {
 type master;
 file "";

If you allow dynamic updates to any of the zones, change the MNAME field of those zones' SOA records to the domain name of the new primary and add an allow-update or update-policy substatement. For example:

zone "foo.example" {
 type master;
 file "";
 allow-update {; };

If you restricted zone transfers from the old primary, duplicate the allow-transfer substatement from the old zone statement.

Then reload the name server with rndc reload or ndc reload, as appropriate.

If you followed the instructions in Section 5.24 and set up the slaves to use this name server as their backup master, you're done. If not, you'll need to reconfigure your slaves to use the new primary as their master. Just change the IP address in the masters substatement to the address of the new primary and reload.

5.25.3 Discussion

If you're so inclined, you can rename the zone data file to fit your standard for primary master zones. For example, we might rename to

Check the zone statement on the old primary master for other substatements that you might need to duplicate on the new primary master, such as also-notify and check-names.

5.25.4 See Also

Section 5.24 and "Coping with Disaster" in Chapter 8 of DNS and BIND.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration


Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting


DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu © 2008-2020.
If you may any questions please contact us: