Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive

In my opinion, PowerDNS gives more flexibility to a system administrator to deal with their DNS zones. Things such as having different backends, mixing dynamic and static answers are hard to archive with bind. In this post, I will write about how to put a Bind alike zone into PowerDNS. This will open possibilities to have some very cool features such as High Availability and Load Balancing through DNS protocol.

Configure your Domain

This is one I use, you will find it is pretty simple. And almost identical to a normal BIND zone.

$TTL 180
@ IN SOA (
        2014080704 ; Serial Number (date YYYYMMDD++)
        86400 ; Refresh (24 hours)
        1800 ; Retry (1/2 hour)
        3600000 ; Expire (42 days)
        21600) ; Minimum (6 hours)
        IN NS
        IN NS
@       IN A
        IN MX 10
        IN MX 12
        IN TXT "v=spf1 a mx ~all"
www     IN CNAME 
mail    IN CNAME
ns1     IN A 
ns2     IN A
host1   IN A
host2   IN A

Some important fields are:

  • The SOA line, is the first DNS server, regardless if you have more than one.
  • The SOA line, postmaster.inside-out.xyzp comes from email This email address is being protected from spambots. You need JavaScript enabled to view it.. You substitute the @ by a dot. It is the system administrator email.
  • The NS lines, ns1 and ns2 are the domain servers. The order it is not important.
  • The MX lines, mail and amil2 specify the servers where the email will arrive. 
  • If you end a fqdn with a dot, it means it is the absolute name. Otherwise, the domain server will add the current domain name to it.

Save this file on your server, you will need it in the following steps. I will put it in /etc/pdns/ as a reference in this example.

Next is to create a manifesto file, just like you were using Bind. In my case, I created like this:

zone "" { type master; file "/etc/pdns/"; };

Save this file, for example at /etc/pdns/bind.conf

Tell PowerDNS to use your Bind Zone

You need to edit your pdns.conf file, edit or add the following lines:


Important notes are:

  • launch tells to use the bind backend
  • bind-config tells where the manifesto is
  • bind-check-interval tells to check the zones each 300 seconds, if you do a change you don't need to restart PowerDNS, you just wait for the next refresh 

If you need more control, you can read the full list of PowerDNS Bind backend parameters documentation.

Good Luck!

blog comments powered by Disqus


Read about IT, Migration, Business, Money, Marketing and other subjects.

Some subjects: FusionPBX, FreeSWITCH, Linux, Security, Canada, Cryptocurrency, Trading.