You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org
DNS/Netbox
< DNS
Jump to navigation
Jump to search
Revision as of 17:49, 2 April 2020 by imported>Volans (Add category)
Part of the DNS records are or will soon be automatically generated from data that resides in Netbox.
Infrastructure
- Netbox data is exported via Netbox#DNS.
- Netbox data is checked out on the authoritative DNS servers in
/srv/git/netbox_dns_snippets
. - When compiling the
gdnsd
final zones, the Netbox data is copied into/etc/gdnsd/zones/netbox
for later inclusion. - In the actual zonefiles, within an
$ORIGIN
, the related snippet file is included using the$INCLUDE
directive.
Operations
Update generated records
To update the dynamically generated records based on the current Netbox data and deploy them to all the authoritative DNS servers, the sre.dns.netbox
cookbook must be run. See also Cookbooks#Cookbook_Operations.
Convert an hardcoded $ORIGIN to Netbox
This is an example patch to convert an hardcoded $ORIGIN
to the dynamically generated data.