PowerDNS

From Virtualizor Wiki
Jump to: navigation, search

PowerDNS

This page explains how to setup PowerDNS for Virtualizor. The Virtualizor-PDNS install script will install PowerDNS, MySql and other dependencies and will setup database replication between the primary and secondary nameservers.

Requirements

Create two small VPSs with CentOS 5/6, 512MB Ram , 10GB HDD . You should have at least 2 DNS servers in your setup .

The setup should be as below .

  • One VPS for primary nameserver
  • One VPS for secondary nameserver
  • SSH access to both VPSs and should be ping-able to each other .

Installation

These instructions are to be run only on the primary nameserver.

  • Download the Virtualizor PowerDNS install script onto the VPS that you have assigned to be your primary nameserver.
  • The PowerDNS install script executed on the primary name server will automatically install and configure the secondary nameserver .Make sure you have pass the correct parameters of the secondary server.
root> wget http://files.virtualizor.com/pdns_install.sh
  • Make the script executable
root> chmod +x pdns_install.sh
  • Run the script
root> ./pdns_install.sh --mysql-username=root --mysql-password=password --virt-serverip=xxx.xxx.xxx.xxx --masterns-ip=xxx.xxx.xxx.xxx 
  --slavens-ip=xxx.xxx.xxx.xxx --slavens-rootpass=password

Note : All the arguments are compulsory. All the parameters to be specified on the same line.

Parameters breakdown

Name Description
--mysql-username This needs to be the mysql username of the primary nameserver. This is mostly root.
--mysql-password This needs to be the mysql root password of the primary nameserver
--virt-serverip This needs to be the IP Address of the server on which Virtualizor is installed.
--masterns-ip This needs to be the IP Address of the primary nameserver.
--slavens-ip This needs to be the IP Address of the secondary nameserver.
--slavens-rootpass This needs to be the root(not mysql) password of the secondary nameserver.
  • After running the script, run the following command to verfiy installation.
$ /etc/init.d/pdns status

To Configure powerDNS in virtualizor please refer the below guide :

http://www.virtualizor.com/wiki/Configure_PowerDNS