Own DNS (PowerDNS + PowerAdmin)

Own DNS (PowerDNS + PowerAdmin)

Source:

I. Install Apache2:
sudo aptitude install apache2

II. Install MySQL, PHP and secure:
sudo aptitude install mysql-server
sudo mysql_install_db
sudo mysql_secure_installation
sudo aptitude install mysql-client
sudo aptitude install libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php-pear php5-imap php5-mcrypt php5-mhash php5-ming php5-mysql php5-xmlrpc gettext
sudo /etc/init.d/mysql restart
sudo /etc/init.d/apache2 restart

III. Install PowerDNS:
sudo aptitude install pdns-server pdns-backend-mysql

IV. Install PowerAdmin:
cd /var/www/html
sudo wget https://github.com/poweradmin/poweradmin/archive/master.zip
sudo unzip master.zip
sudo mv poweradmin-master/* .
sudo rm master.zip
sudo rm -f poweradmin-master/

V. Configure PowerAdmin:
Enter IP to browser:

  • Choose language.
  • Go next.
  • Enter credentials to MySQL and password to admin user PowerAdmin.
  • Enter user credentials. This user is the communication between WWW and MySQL.
  • Do this what is in description.
  • Do this what is in description.

VI. Cleaning:
sudo rm -r /var/www/html/PowerAdmin/install/

VII. Configuring a recursor:
sudo sed -i ‘s/# recursor=/recursor=8.8.8.8/g’ /etc/powerdns/pdns.conf
sudo sed -i ‘s/allow-recursion=127.0.0.1/allow-recursion=127.0.0.1,192.168.0.0\/24/g’ /etc/powerdns/pdns.conf

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *

This site uses Akismet to reduce spam. Learn how your comment data is processed.