Ask Your Question

Is there any tutorial for DNS automation?? Please Help

asked 2015-11-28 00:40:51 -0600

Nikhil Rao gravatar image

I would like to automate the DNS using PUPPET tool. Need some insight on this topic and if possible any tutorials based on this

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-12-01 08:11:41 -0600

hvm gravatar image

We're automating BIND based authoritative nameserves using Puppet. No slave servers, just masters with identical zone files. Whenever a zone file changes on the puppet master it is copied to the nameservers. First, "named-checkconf -z" is executed and evaluated (should exit with 0), if ok, we run "rndc reload". Whenever the zone list changes, we do the same but execute "rndc reconfig" after.

Before automating, make sure you're familiar with DNS and the tools your nameserver of choice (BIND, PowerDNS) uses. Use any sanity checks available (learn the tools), so typo's will not cause any outages.

edit flag offensive delete link more

answered 2015-11-30 11:24:27 -0600

GregLarkin gravatar image

updated 2015-12-01 16:18:49 -0600

Can you narrow the scope of your question down a bit? It's a bit difficult to answer something without some constraints around what you are trying to achieve.

For instance, are you simply trying to manage the DNS resolver configuration, or are you trying to manage DNS zone files on a fleet of DNS servers?

A good place to look for anything related to DNS management using Puppet is on the Puppet Forge using this search:

Please post a more specific follow-up to your question, and I'm sure someone here can help you out.


In the case you described where you want to manage a fleet of DNS servers and their zone files, have a look at this DNS record management module on the Puppet Forge:

This module gives you to ability to create zone files, records in those zones, and then you can classify all of your DNS servers push those zone files to each one.

There's no specific tutorial for how to do this other than understanding the way you create Puppet modules, classify nodes, etc. It works the same way as for any other kind of resource you want to manage on a node. One way to get an overall feel for how to use Puppet is to download the Learning VM and go through all of its exercises:

Our documentation site is also very extensive, and you can also take online courses at our learning portal:

edit flag offensive delete link more


Hi Yes i wanna try to manage DNS zone files on a fleet of DNS servers ... Can you please help me out with the documentation of this process?????

Nikhil Rao gravatar imageNikhil Rao ( 2015-11-30 19:19:32 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2015-11-28 00:40:51 -0600

Seen: 446 times

Last updated: Dec 01 '15