Install the bind package with Yum First (this package is the installation package for DNS)
Then close SELinux
Setenforce 0
After emptying the firewall
Iptables-f
After the installation is complete only
Vim to/etc/named.conf
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/15/wKiom1Vy48KxvnRzAACARPwRNoY848.jpg "title=" x[uh~@ Tur7ey0l@ilb_@q[a.png "alt=" Wkiom1vy48kxvnrzaacarpwrnoy848.jpg "/>
Modify Options Area after entry
This is before the change.
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/15/wKiom1Vy5FiRSDjiAAErJLFUo7U295.jpg "title=") 1 ( 8v0o%]}om[} (IE9) _$sm.png "alt=" Wkiom1vy5firsdjiaaerjlfuo7u295.jpg "/>
This is how it's changed.
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/15/wKiom1Vy5UuDTz-NAAIJRm6XEMY727.jpg "title=" 2] By2nss{rgw}cp0k1r_ (@g.png "alt=" Wkiom1vy5uudtz-naaijrm6xemy727.jpg "/>
Then modify the Named.rfc1912.zones file, vi/etc/named.rfc1912.zones this file
Only these two areas are reserved for forward parsing and reverse parsing
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/11/wKioL1Vy6ETACVdrAACp2wty3fw659.jpg "style=" float: none; "title=" Gs~03 ' $Y 6op1cx$}8prvl (v.png "alt=" Wkiol1vy6etacvdraacp2wty3fw659.jpg "/>
Then modify the content as follows forward parsing area The domain I wrote is the zbl.com file name Zbl.localhost
Reverse parse 216.168.192 filename into zbl.loopback
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/15/wKiom1Vy5qXhs5ZeAACo0pu3O2U240.jpg "style=" float: none; "Title=" sy9h () o3_59gaxh[h]]cczq.png "alt=" Wkiom1vy5qxhs5zeaaco0pu3o2u240.jpg "/>
Then modify the localhost configuration file,
Forward parsing:
CD to Directory
cd/var/named/
Copy files with attributes
Cp-p Named.localhost Zbl.localhost
Edit Zbl.localhost File
VI Szlpt.cn.zone
At first it was like this
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/15/wKiom1Vy6nOAPmVnAACLqPlGItU872.jpg "style=" float: none; "Title=" J0 (}}5]]cki@%b) N (}8) 2@M.png "alt=" Wkiom1vy6noapmvnaaclqplgitu872.jpg "/>
I modified it after this is the DNS. Referring to my native mail mail service refers to another www pointing to itself
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6E/15/wKiom1Vy6qyDBkqnAADRGi1pamA800.jpg "title=" {igyl{ 8R%SW15HFV1@8NLSB.png "alt=" Wkiom1vy6qydbkqnaadrgi1pama800.jpg "/>
Reverse parsing:
CD to Directory
cd/var/named/
Copy template file with attribute copy
Cp-p Name.loopback Zbl.loopback
Edit File Zbl.loopback
Vim Zbl.loopback
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/6E/16/wKiom1Vy8XXyxWz1AAC6krr2WMQ674.jpg "title=" Vavdcspru@f4hpf%m_k}k88.png "alt=" Wkiom1vy8xxyxwz1aac6krr2wmq674.jpg "/>
After modification
The Restart DNS service is:
Service named restart
The Shutdown DNS service is:
Service named stop
The DNS service is turned on:
Service named start
Just restart here.
Then edit the NIC configuration file to point DNS to your own local resolution to do the experiment
Vim/etc/sysconfig/network-scripts/ifcfg-eth0
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/16/wKiom1Vy7oTR8EfoAADnclM3lJo934.jpg "title=" Hba9bh6y67o{jxlph~78795.png "alt=" Wkiom1vy7otr8efoaadnclm3ljo934.jpg "/>
dns1= DNS native 115
Then restart the NIC
Service Network restart
Under test
Nslookup
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/11/wKioL1Vy82_BNo7sAADwp11tUzw134.jpg "title=" @IAL @o $]5w%chva[}6s0w3t.png "alt=" Wkiol1vy82_bno7saadwp11tuzw134.jpg "/>
Parse success
This article from the "title, Good Tangled" blog, reproduced please contact the author!
DNS setup for Linux