Macro support for PowerDNS on Rails

PowerDNS, and PowerDNS on Rails forms a critical part of our infrastructure here at inX, and over the holidays I’ve been busy adding support for macros to PowerDNS on Rails.

Macros allow a DNS administrator to setup a predefined sequence of steps that will later be applied to any domain they choose, via the web interface or API access.

Where is this used? Well, lets take a simple example related around web hosting. Lets say you have zone templates configured for three data centers, one in South Africa, one in Europe and one in the US. By default you’ll probably use one of these templates when new domains are added to the system. The template might contain everything you need for web hosting and email to work. Later the client asks to be shifted to another continent, for whatever reason, and you’ll have to update a load of records for that domain.

Macros solves this by allowing you to predefine several actions which either creates, removes or updates records for the domain. Macros can then be applied on any domain to have these changes take affect on that domain.

Just like zone templates, macros are available to owners and administrators alike.


I’ve also started creating a new official website for the PowerDNS on Rails project, and it lives over here.

Welcome to the Open Sourcery Archives. These are my older blog posts, from days gone by. I'm keeping them up as part of the historical record. That, and I'm strangely sentimental about them. Please keep in mind that things most certainly have changed since these articles were written, links to external sites might be broken, and general thinking might have changed.

Regardless of all this, I hope you enjoy your stay!

comments powered by Disqus