BIND 9 and later: zone transfer syntax examples

Note: For this example the zone transfer agents are 192.0.2.1, 192.0.2.2, and 192.0.2.3.
Restrict zone transfers using the allow-transfer directive in the options stanza in the named.conf file:

options {
.....
allow-transfer {192.0.2.1;192.0.2.2;192.0.2.3;};
.....
};

You can also specify allow-transfer in the zone statement, in which case it overrides the options allow-transfer statement:


zone “example.com” {
.....
allow-transfer {192.0.2.1;192.0.2.2;192.0.2.3;};
};

If not specified, the default is to allow transfers from all hosts.