Put PowerDNS to Practice
Put PowerDNS to Practice
PowerDNS is proud to be an open source product for DNS parsing . It is one such marvelous open alternative domain name system (DNS). PowerDNS is notably in use at some of the largest ISPs and websites in the world, such as AOL, Shaw Cable, and even Wikipedia. Its compact codebase and focus on security, scalability, and reliability make it a great name server choice. PowerDNS is jam packed with features that would impress any network or system admin.
###Good things :
1 | Authoritative DNS server (hosting) |
##Key components of PowerDNS
The Authoritative Server
角色 :
1. Primary server
1 | Sometimes called a master server, which is the original and definitive |
2. The secondary name server
1 | Often called a slave server, is an identical replica used to provide redundancy and high availability. |
The PowerDNS recursor
1 | Simply provides caching or a standalone recursive resolver for clients accessing your network or the |
The PowerDNS recursor supports:
1 | All relevant standards |
##Installing the PowerDNS
install
1 | yum install wget |
configure
BackEnd: MySQL
1 | create database powerdnsdb; |
SQL :
1 | CREATE TABLE domains ( |
RECORD :
1 | *************************** 258. row *************************** |
ADD DNS :
1 | insert into records( |
core variables :
1 | forward-zones=autohome.com.cn=192.168.xxx.xxxx;192.168.xxx.xxx |
##Installing the PowerDNS Recursor
CentOS 安装 recursor :
1 | yum -y install pdns pdns-backend-mysql pdns-recursor |
configure :
1 | launch=gmysql |
manage recursor service :
1 | service pdns-recursor start / stop |
Performance and Tuning
We can reference the docs : https://doc.powerdns.com/md/authoritative/performance/#performance-and-tuning
Summary
powerDNS is a alternative DNS for OPS basic service . Happy to use it !