|
|
9번째 줄: |
9번째 줄: |
| | | |
| = CentOS 6.5에 설치 = | | = CentOS 6.5에 설치 = |
| + | |
| + | == PowerDNS 설치 == |
| | | |
| [[CentOS#EPEL .EC.84.A4.EC.B9.98|CensOS용 EPEL 설치]]를 합니다. | | [[CentOS#EPEL .EC.84.A4.EC.B9.98|CensOS용 EPEL 설치]]를 합니다. |
94번째 줄: |
96번째 줄: |
| | | |
| |} | | |} |
| + | |
| + | |
| + | |
| + | == PowerAdmin 설치 == |
| | | |
| = 참고 문헌 = | | = 참고 문헌 = |
2014년 9월 19일 (금) 10:22 판
DNS 솔루션인 PowerDNS를 정리 합니다.
PowerDNS 개요
CentOS 6.5에 설치
PowerDNS 설치
CensOS용 EPEL 설치를 합니다.
PowerDNS를 설치 합니다.
yum install pdns pdns-backend-mysql pdns-recursor
|
MariaDB에서 Database 등을 생성 합니다.
vi pdns.sql
create table domains ( id INT auto_increment, name VARCHAR(255) NOT NULL, master VARCHAR(128) DEFAULT NULL, last_check INT DEFAULT NULL, type VARCHAR(6) NOT NULL, notified_serial INT DEFAULT NULL, account VARCHAR(40) DEFAULT NULL, primary key (id) ) Engine=InnoDB; CREATE UNIQUE INDEX name_index ON domains(name);
CREATE TABLE records ( id INT auto_increment, domain_id INT DEFAULT NULL, name VARCHAR(255) DEFAULT NULL, type VARCHAR(10) DEFAULT NULL, content VARCHAR(64000) DEFAULT NULL, ttl INT DEFAULT NULL, prio INT DEFAULT NULL, change_date INT DEFAULT NULL, primary key(id) ) Engine=InnoDB; CREATE INDEX rec_name_index ON records(name); CREATE INDEX nametype_index ON records(name,type); CREATE INDEX domain_id ON records(domain_id);
create table supermasters ( ip VARCHAR(25) NOT NULL, nameserver VARCHAR(255) NOT NULL, account VARCHAR(40) DEFAULT NULL ) Engine=InnoDB;
|
mysql -uroot -p mysql
create database powerdns; grant all privileges on powerdns.* to powerdns@localhost identified by 'demo1234'; flush privileges;
use powerdns; source pownerdns.sql commit; show tables;
quit;
|
vi /etc/pdns/pdns.conf
setuid=pdns #--- 이미 있음 setgid=pdns #--- 이미 있음 #launch=bind #--- 삭제
launch=gmysql allow-recursion=127.0.0.1,192.168.70.1 config-dir=/etc/pdns daemon=yes disable-axfr=yes guardian=yes local-port=53 module-dir=/usr/lib64/pdns recursor=127.0.0.1:5300 socket-dir=/var/run version-string=powerdns gmysql-host=localhost gmysql-user=powerdns gmysql-password=demo1234 gmysql-dbname=powerdns gmysql-port=3306 #gmysql-socket=/var/lib/mysql/mysql.sock #--- 향후 사용
|
vi /etc/pdns-recursor/recursor.conf
local-port = 5300 allow-from=127.0.0.0/8
|
setup 명령을 사용하여 방화벽 설정을 합니다.
PowerDNS를 시작 합니다.
service pdns restart
service pdns-recursor restart
|
PowerAdmin 설치
참고 문헌