DNS Service main installation package under Linux
Bind #dns服务安装包
Bind-utils #包含dig, Nslookup and other network diagnostic tools
Bind-chroot #保护named服务 to improve the security level. /var/named/chroot Alternate root directory
Building a DNS service
IP address:192.168.0.37
Hostname:cici
650) this.width=650; "title=" style= "border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M00/76/9A/wKiom1ZXnb7jviTTAAA6gKU_ F24870.png "" 634 "height=" 208 "/>
View Bind Service
650) this.width=650; "title=" style= "border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M02/76/9A/ Wkiom1zxnb7drzadaaaoo26l0wy462.png "" 351 "height="/>
Install bind service via Yum installation, direct bind* (small white lazy, haha)
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M00/76/9A/ Wkiom1zxnb-de4l9aaawjkkkdpu497.png "" 503 "height="/>
Once the installation is complete, check again and everything is OK
650) this.width=650; "title=" style= "border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "Http://s3.51cto.com/wyfs02/M00/76/99/wKioL1ZXnh_ Axpfmaaae2xhm9x4672.png "" 335 "height=" "/>
Next Configure the/etc/named.conf # DNS default resolution record data file
650) this.width=650; "title=" to "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "Http://s3.51cto.com/wyfs02/M00/76/99/wKioL1ZXnh_ Rr4d6aaakis1qzkc751.png "" 427 "height="/>
Listetn-on por (any;}; Any
Directory "/var/named"; This directory =/var/named/chroot/var/amed/
allow-query {any;}; Allow all to change to any
650) this.width=650; "title=" border-top:0px "style="; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M01/76/99/ Wkiol1zxnh-dzjcdaaakqnjtda0659.png "" 558 "height=" 169 "/>
Defining the forward and backward parsing sections
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" "src=" http://s3.51cto.com/wyfs02/M00/76/9A/ Wkiom1zxnchbiiquaaapfegpve8317.png "" 557 "height=" 157 "/>
Checking file correctness with the named-checkconf tool
Format: named-checkconf [Master profile]
Example: named-checkconf/var/named/named.conf
No, it means normal.
650) this.width=650; "title=" border-top:0px "style="; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M02/76/9A/ Wkiom1zxnchxznd5aaancw8jffa005.png "" 429 "height="/>
Then continue to copy the/var/named named file to the Chroot directory
Security Considerations for DNS
650) this.width=650; "title=" style= "border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M00/76/9A/ Wkiom1zxncgjxqs4aaaysrz9qys935.png "" 710 "height=" 157 "/>
Creating forward and reverse parsing files in/var/named/chroot/var/named
The file name should be the same as defined in the previous named.conf
650) this.width=650, "title=", "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M01/76/9A/ Wkiom1zxn93wfyqyaaabgoxo8zs719.png "" 670 "height="/>
To configure a forward parsing file
650) this.width=650; "title=" one "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M02/76/9A/wKioL1ZXoD2Tx4rQAAAcwP1I_ Sq710.png "" 490 "height=" 179 "/>
Reverse
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M02/76/9A/ Wkiom1zxn97smfjgaaaz8kmjauq320.png "" 499 "height=" 181 "/>
To test whether the positive and negative files are correct
Through Named-checkzone detection
Format: named-checkzone [domain name] [zone data file]
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M00/76/9A/ Wkiol1zxod7abbnyaaabv1tz7kg627.png "" 705 "height=" 108 "/>
When you modify the/var/named/chroot master to named
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" "src=" http://s3.51cto.com/wyfs02/M01/76/9A/wKiom1ZXn9_ Zs1l2aaao3yjoy0k552.png "" 497 "height=" 155 "/>
Start the DNS service
650) this.width=650, "title=", "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" "src=" http://s3.51cto.com/wyfs02/M01/76/9A/wKiom1ZXn9_ Bzooiaaavbaygyye471.png "" 561 "height="/>
Modify the reslov.conf file # DNS configuration file directory
650) this.width=650; "title=" border-top:0px "style="; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" src= "http://s3.51cto.com/wyfs02/M02/76/9A/ Wkiom1zxn-dz9y5caaaylq6yi1i247.png "" 287 "height=" 145 "/>
Ping www.cici.com Test
650) this.width=650; "title=" "style=" border-top:0px; border-right:0px; Background-image:none; border-bottom:0px; padding-top:0px; padding-left:0px; border-left:0px; padding-right:0px "border=" 0 "alt=" "src=" http://s3.51cto.com/wyfs02/M02/76/9A/ Wkiol1zxoedaimnaaaaudj17f0g490.png "" 521 "height=" 142 "/>
Ok
Small white blind write, where insufficient also please the Great God to guide, haha
Centos6.7 Simple DNS Server Setup