Installing and configuring a name server

Software used in example:

  • Ubuntu LTS
  • MySQL Database
  • PowerDNS
  • Atomia DNS PowerDNS Sync
  1. Install the latest Ubuntu LTS relase.
  2. Become root
  3. Add the Atomia APT Repository:
    wget -q -O - | sed s/%distcode/`lsb_release -c | awk '{ print $2 }'`/g | sh
  4. Install the database schema (will also install MySQL):
    apt-get install atomiadns-powerdns-database
  5. To configure the nameserver to get zones from your Atomia DNS installation, add soap_uri, soap_cacert, soap_username and soap_password to /etc/atomiadns.conf:
    soap_uri =
    soap_cacert = /path/to/CA_cert_that_signed_SSL_cert
    soap_username = someuse
    soap_password = somepass
  6. Also to /etc/atomiadns.conf add the subscriber name for this nameserver:
    servername = powerdns1
  7. Install the PowerDNS sync agent:
    apt-get install atomiadns-powerdnssync
  8. Create a nameserver group using the Atomia DNS API or (as in the example below) the atomiadnsclient (Replace default with your desiered name):
    atomiadnsclient --method AddNameserverGroup --arg default
  9. Add the nameserver as subscriber of the zones (replace default with whatever server group it is to be member of):
    atomiapowerdnssync add_server default
  10. Start the daemon:
    /etc/init.d/atomiadns-powerdnssync start
  11. Sync all zones:
    atomiapowerdnssync full_reload_online
  12. Go to and download the latest .deb package.
  13. Install it using (replace filename):

    dpkg -i pdns-static_3.0-rc1-1_amd64.deb

    When it asks if you want to replace /etc/powerdns/pdns.conf, just press enter to keep the version that atomiadns-powerdns-database preconfigured for you.

More information: