"PowerDNS"의 두 판 사이의 차이
잔글 |
잔글 |
||
12번째 줄: | 12번째 줄: | ||
− | [[CentOS# | + | [[CentOS#EPEL .EC.84.A4.EC.B9.98|CensOS용 EPEL 설치]]를 합니다. |
+ | |||
+ | PowerDNS를 설치 합니다. | ||
+ | |||
+ | {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" | ||
+ | |- | ||
+ | | style="background-color: rgb(241, 241, 241);" | yum install pdns pdns-backend-mysql pdns-recursor<br/> | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | [[MariaDB|MariaDB]]에서 Database 등을 생성 합니다. | ||
+ | |||
+ | vi pdns.sql | ||
+ | |||
+ | {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" | ||
+ | |- | ||
+ | | style="background-color: rgb(241, 241, 241);" | | ||
+ | create table domains (<br/> id INT auto_increment,<br/> name VARCHAR(255) NOT NULL,<br/> master VARCHAR(128) DEFAULT NULL,<br/> last_check INT DEFAULT NULL,<br/> type VARCHAR(6) NOT NULL,<br/> notified_serial INT DEFAULT NULL, <br/> account VARCHAR(40) DEFAULT NULL,<br/> primary key (id)<br/>) Engine=InnoDB;<br/>CREATE UNIQUE INDEX name_index ON domains(name); | ||
+ | |||
+ | CREATE TABLE records (<br/> id INT auto_increment,<br/> domain_id INT DEFAULT NULL,<br/> name VARCHAR(255) DEFAULT NULL,<br/> type VARCHAR(10) DEFAULT NULL,<br/> content VARCHAR(64000) DEFAULT NULL,<br/> ttl INT DEFAULT NULL,<br/> prio INT DEFAULT NULL,<br/> change_date INT DEFAULT NULL,<br/> primary key(id)<br/>) Engine=InnoDB;<br/>CREATE INDEX rec_name_index ON records(name);<br/>CREATE INDEX nametype_index ON records(name,type);<br/>CREATE INDEX domain_id ON records(domain_id); | ||
+ | |||
+ | create table supermasters (<br/> ip VARCHAR(25) NOT NULL, <br/> nameserver VARCHAR(255) NOT NULL, <br/> account VARCHAR(40) DEFAULT NULL<br/>) Engine=InnoDB; | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | mysql -uroot -p mysql | ||
+ | |||
+ | {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" | ||
+ | |- | ||
+ | | style="background-color: rgb(241, 241, 241);" | | ||
+ | create database powerdns;<br/>grant all privileges on powerdns.* to powerdns@localhost identified by 'demo1234';<br/>flush privileges; | ||
+ | |||
+ | use powerdns;<br/>source pownerdns.sql<br/>commit;<br/>show tables; | ||
+ | |||
+ | quit; | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | PowerDNS를 설치 합니다. | ||
+ | |||
+ | {| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" | ||
+ | |- | ||
+ | | style="background-color: rgb(241, 241, 241);" | yum install pdns pdns-backend-mysql pdns-recursor<br/><br/> | ||
+ | |} | ||
+ | |||
+ | ppp | ||
= 참고 문헌 = | = 참고 문헌 = |
2014년 9월 19일 (금) 09:43 판
DNS 솔루션인 PowerDNS를 정리 합니다.
- 홈페이지 : https://www.powerdns.com/
- 다운로드 :
- 라이선스 :
- 플랫폼 :
PowerDNS 개요
CentOS 6.5에 설치
CensOS용 EPEL 설치를 합니다.
PowerDNS를 설치 합니다.
yum install pdns pdns-backend-mysql pdns-recursor |
MariaDB에서 Database 등을 생성 합니다.
vi pdns.sql
create table domains ( CREATE TABLE records ( create table supermasters ( |
mysql -uroot -p mysql
create database powerdns; use powerdns; quit; |
PowerDNS를 설치 합니다.
yum install pdns pdns-backend-mysql pdns-recursor |
ppp