debian base system
IP:192.168.56.101
hostname: host.pdns.local
1.固定IP地址:
/etc/network/interfaces
auto eth0iface eth0 inet staticaddress 192.168.56.101 gateway 192.168.56.100netmask 255.255.255.0network 192.168.56.0
2.install 相关软件包
root@pdns:~# apt-get -y install mysql-server pdns-server pdns-backend-mysql3.设置mysql root用户密码:123456
4.设定powerdns 连接mysql 数据
configure database for pdns-backen-mysql with dbconfig-common [YES] y这里输入mysql root管理员密码,上面的。
5.检索安装包创建数据库pdns(powerdns-backen-mysql 默认创建)是否成功:
root@pdns~# mysql -u root -p输入密码:123456mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || pdns || performance_schema |+--------------------+4 rows in set (0.00 sec)
6.install apache,并采用pear DB 操作mysql
#apt-get -y install apache2 libapache2-mod-php5 php5 php5-common php5-curl php5-dev php5-gd php-pear php5-imap gettext php5-mcrypt php5-mhash php5-ming php5-mysql php5-xmlrpc# pear install DB# pear install pear/MDB2#mysql
7.wget poweradmin 解压到/var/www/dnsadmin/
root@pdns:~# tar -zxvf poweradmin-2.1.7.tgzroot@pdns:~# mv poweradmin-2.1.7 /var/www/dnsadmin8.创建dnsadmin/inc/config.inc.php 文件 并对dnsadmin 加入www-data组,避免web install 时提示无权限
#touch /var/www/dnsadmin/inc/config.inc.php#chown -R www-data:www-data /var/www/dnsadmin9.设置nameserver 为192.168.56.101 并重启所有服务,好吧我直接reboot了
#nano /etc/resolv.confnameserver 192.168.56.101#/etc/init.d/pdns restart#etc/init.d/networking restart10.web界面操作:http://192.168.56.101/install
默认一直Go to step 3
这里输入mysql root用户及密码。并设置web管理界面登录密码pdns
##########
10.将以下sql语句,到mysql里创建一次用户。
11.poweradmin安装成功。
rm -rf /var/www/dnsadmin/install
通过http://192.168.56.101/dnsadmin去管理你的域名解析吧....