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.
This is one I use, you will find it is pretty simple. And almost identical to a normal BIND zone.
$TTL 180
@ IN SOA ns1.inside-out.xyz. postmaster.inside-out.xyz. (
2014080704 ; Serial Number (date YYYYMMDD++)
86400 ; Refresh (24 hours)
1800 ; Retry (1/2 hour)
3600000 ; Expire (42 days)
21600) ; Minimum (6 hours)
IN NS ns1.inside-out.xyz.
IN NS ns2.inside-out.xyz.
@ IN A 192.168.0.1
IN MX 10 mail.inside-out.xyz.
IN MX 12 mail2.inside-out.xyz.
IN TXT "v=spf1 a mx ~all"
www IN CNAME inside-out.xyz.
mail IN CNAME mail.okay.com.mx.
ns1 IN A 8.8.8.8
ns2 IN A 8.8.4.4
host1 IN A 192.168.7.1
host2 IN A 192.168.7.2
Some important fields are:
Save this file on your server, you will need it in the following steps. I will put it in /etc/pdns/inside-out.xyz 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 "inside-out.xyz" { type master; file "/etc/pdns/inside-out.xyz"; };
Save this file, for example at /etc/pdns/bind.conf
You need to edit your pdns.conf file, edit or add the following lines:
launch=bind
bind-config=/etc/pdns/bind.conf
bind-check-interval=300
Important notes are:
If you need more control, you can read the full list of PowerDNS Bind backend parameters documentation.
Good Luck!
blog comments powered by DisqusAbout
Read about IT, Migration, Business, Money, Marketing and other subjects.
Some subjects: FusionPBX, FreeSWITCH, Linux, Security, Canada, Cryptocurrency, Trading.