[펌] PowerDNS , GUI Install

PowerDns-Gui 설치

1. 아파치,PHP,mysql 설치
apt-get install apache2 php5 php5-cli php5-mysql php5-xsl mysql-server pdns-server pdns-backend-mysql

2. powerdns 세팅
+powerdns DB 및 계정 세팅
-mysql 접속
CREATE DATABASE powerdns;

GRANT ALL PRIVILEGES ON powerdns.* TO power_admin@localhost
IDENTIFIED BY ‘xxxx’ WITH GRANT OPTION;
FLUSH PRIVILEGES;

-DB TABLE 만들기
mysql -u root -p powerdns < /usr/share/doc/pdns-backend-mysql/mysql.sql

환경파일  세팅
vi /etc/pdns/pdns.conf
launch=gmysql
gmysql-host=127.0.0.1
gmysql-user=power_admin
gmysql-password=xxxx
gmysql-dbname=powerdns

/etc/init.d/pdns start

3. GUI 소스 다운로드 및 설치
Link :  http://code.google.com/p/pdns-gui/downloads/detail?name=pdns-gui.0.3.3.tgz
tar xvf pdns-gui.x.x.tgz
cd /var/www/pdns-gui.x.x/batch
./install.sh

아파치 환경 세팅 추가

<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/pdns-gui.x.x/web
        DirectoryIndex index.php
        <Directory /var/www/pdns-gui.x.x/web>
            AllowOverride All
        </Directory>
</VirtualHost>

일반적인 에러
binding to UDP socket: Address already in use
이 에러는 다른 네임서버가 이미 53번 포트를 사용하고 있다는 뜻입니다. 현재 구동중인 네임서버가 있다면 중지시키십시오. 그것이 어렵다면 다른 포트로 PDNS를 구동할 수도 있습니다. pdns.conf에 local-port=5300를 추가하고 다시 시도해 보십시오. 하지만, 대부분의 DNS클라이언트는 53번을 기준으로 동작합니다.

binding to UDP socket: Permission denied
53번 포트의 사용은 수퍼유저만 가능합니다. 수퍼유저가 아니라면 PDNS를 다른 포트로 구동해야 합니다. pdns.conf에 local-port=5300를 추가하고 다시 시도해 보십시오. 하지만, 대부분의 DNS클라이언트는 53번을 기준으로 동작합니다.

Unable to launch, no backends configured for querying
pdns.conf에 launch=bind 항목을 추가 하십시오.

Multiple IP addresses on your server, PDNS sending out answers on the wrong one, Massive amounts of ‘recvfrom gave error, ignoring: Connection refused’
한 컴퓨터에서 여러개의 IP주소를 사용중이라면, UNIX는 패킷을 받은 인터페이스가 아닌 다른 인터페이스로 응답을 보내는 경우가 있습니다. 이런 경우에는 local-address를 쉼표(,)로 지정된 특정 IP주소로 지정해서 사용합니다. 두번째 에러는 IP주소와 ICMP에러에 대한 응답에 반응하지 않는 경우에 발생합니다.

p.s.
DB 계정 패스워드 특수문자로 입력시 에러 날수 있음

참고 사이트:
http://code.google.com/p/pdns-gui/
http://www.howtoforge.com/installing-powerdns-with-mysql-backend-and-poweradmin-on-centos-5.2
http://wiki.kldp.org/wiki.php/PowerDNS

댓글 남기기