"PowerDNS"의 두 판 사이의 차이
잔글 |
잔글 |
||
9번째 줄: | 9번째 줄: | ||
= CentOS 6.5에 설치 = | = CentOS 6.5에 설치 = | ||
− | |||
− | |||
[[CentOS#EPEL .EC.84.A4.EC.B9.98|CensOS용 EPEL 설치]]를 합니다. | [[CentOS#EPEL .EC.84.A4.EC.B9.98|CensOS용 EPEL 설치]]를 합니다. | ||
55번째 줄: | 53번째 줄: | ||
− | + | vi /etc/pdns/pdns.conf | |
+ | |||
+ | {| 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);" | | ||
+ | setuid=pdns #--- 이미 있음<br/>setgid=pdns #--- 이미 있음<br/>#launch=bind #--- 삭제 | ||
+ | |||
+ | launch=gmysql<br/>allow-recursion=127.0.0.1,192.168.70.1<br/>config-dir=/etc/pdns<br/>daemon=yes<br/>disable-axfr=yes<br/>guardian=yes<br/>local-port=53<br/>module-dir=/usr/lib64/pdns<br/>recursor=127.0.0.1:5300<br/>socket-dir=/var/run<br/>version-string=powerdns<br/> <br/>gmysql-host=localhost<br/>gmysql-user=powerdns<br/>gmysql-password=demo1234<br/>gmysql-dbname=powerdns<br/>gmysql-port=3306<br/>#gmysql-socket=/var/lib/mysql/mysql.sock #--- 향후 사용 | ||
+ | |||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | vi /etc/pdns-recursor/recursor.conf | ||
+ | |||
+ | {| 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);" | local-port = 5300<br/>allow-from=127.0.0.0/8<br/> | ||
+ | |} | ||
+ | |||
+ | |||
+ | |||
+ | setup 명령을 사용하여 방화벽 설정을 합니다. | ||
{| cellspacing="1" cellpadding="1" style="color: rgb(0, 0, 0); font-family: sans-serif; line-height: 19.0499992370605px; width: 853px;" | {| 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);" | | + | | style="background-color: rgb(241, 241, 241);" | 53/tcp |
|} | |} | ||
− | + | ||
+ | |||
+ | 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);" | | ||
+ | service pdns restart | ||
+ | |||
+ | service pdns-recursor restart | ||
+ | |||
+ | |} | ||
= 참고 문헌 = | = 참고 문헌 = |
2014년 9월 19일 (금) 10:21 판
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; |
vi /etc/pdns/pdns.conf
setuid=pdns #--- 이미 있음 launch=gmysql |
vi /etc/pdns-recursor/recursor.conf
local-port = 5300 allow-from=127.0.0.0/8 |
setup 명령을 사용하여 방화벽 설정을 합니다.
53/tcp |
PowerDNS를 시작 합니다.
service pdns restart service pdns-recursor restart |