Replies: 1 comment 2 replies
-
Your approach looks sensible to me. In fact I am doing something similar: I create the configuration files for BIND primary and secondary servers using Ansible with data from NetBox DNS (Views and Zones) and some external data as well, and then dump the zones for each view to zone files using a fairly simple Ansible template file. Another approach would be to make all of your zones dyamic and update records using I would stick to the duplicate address records for nameservers for two reasons: The one you mentioned, readability (and less leakage of internal information to external entities), and flexibility so you don't have to change internal processes like provisioning if the architecture of your DNS infrastructure changes (and vice versa). What exactly are you meaning with your third question? RFC1035, Section 3.3.11 clearly states that an NS record must have a domain name as its RDATA value, so that's probably not what you have in mind. The NetBox Ansible collection unfortunately only has modules for the core models. Creating a collection for NetBox DNS has been on my list for quite a while, but as it is other projects (the ones I get paid for :-)) take up most of my time, so that's been postponed for what feels like forever. The priority has not been very high from the start, as most of the users I know of use the Ansible/NetBox combo in the other direction - define things in NetBox and then make them real using Ansible. There are, however, some use cases where it makes sense to add records etc. to NetBox from an Ansible automation playbook, so it's pretty sure to materialise at some point (by the way, nothing keeps you from starting such a project - fame and honour will ensue :-)). |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am planning to automate the entire Bind Server installation and configuration. Therefore I plan to follow the following steps:
Points 1, 2 and 6 are already implemented (points 3-5 are currently being done manually).
Now I have a few questions along the way:
Beta Was this translation helpful? Give feedback.
All reactions