|
NAMEmetazone —
convert BIND configuration to/from a DNS zone
SYNOPSIS
DESCRIPTIONA “metazone” is a DNS zone that describes the configuration of other DNS zones.Metazones allow you to use standard DNS mechanisms - AXFR, IXFR, NOTIFY, UPDATE - to control the configuration of multiple name servers, instead of using a separate out-of-band distribution system. The OPTIONS
DETAILSThe format of a metazone is described in metazone(5).A metazone can contain multiple “views” each of which corresponds to a named.conf fragment written to the file: named.zones.⟨view⟩
If you are using multiple views, your main named.conf will typically include each named.zones.⟨view⟩ file in the corresponding view clause. However it is not required for your metazone views to correspond to your BIND views. A number of view names are reserved; see metazone(5) for details. metazone to named.zones.*Themetazone program is designed to work with
nsnotifyd . You can run it with a command like:
nsnotifyd
metazone
⟨zone⟩When the When the named.zones.* to metazoneTo convert a set of named.zones.⟨view⟩ files to a metazone, runmetazone
⟨zone⟩
named.zones.*The zone will be printed to the standard output unless the
Your provisioning system can generate named.conf fragments on your master server, then you can update your metazone with the following command, and the changes will be propagated automatically to your slave servers. $ metazone _metazone named.zones.* | nspatch -- _metazone /dev/stdin -- -l EXAMPLETo configure a slave server to reconfigure itself automatically using a metazone, run:$ nsnotifyd -p 5300 metazone _metazone You need to configure You need to ensure the named.zones.* files are present (empty is OK) so they can be included in the main named.conf. When options { # ... }; view int { match-clients { 192.0.2.0/24; }; recursion yes; zone _metazone { type slave; file "db.metazone"; masters { 192.0.2.1; }; also-notify { 127.0.0.1 port 5300; }; }; include "named.zones.int"; }; view external { match-clients { any; }; recursion no; include "named.zones.ext"; }; SEE ALSOmetazone(5), named.conf(5), named(8), nsnotifyd(1), nspatch(1), rndc(8)AUTHORTony Finch ⟨dot@dotat.at ⟩
at Cambridge University Information Services
Visit the GSP FreeBSD Man Page Interface. |