Dns
Case one:
Domain Name: abc.com
DNS server: 192.168.2.100
www:1.1.1.1
ftp:2.2.2.2
mail:3.3.3.3
POP3 SMTP
Mx
① Installation Preparation
mount/dev/cdrom/media/cdrom/
cd/media/cdrom/packages/
ll bind*
Yum--disablerepo=\*--enablerepo=c6-media Install bind Bind-chroot bind-utils
cd/var/named/chroot/The directory is the DNS root directory
② Configuration
Local Terminal:
Cd/var/named/chroot/etc
RNDC-CONFGEN-A: Generate Key file
Service named start
You can see that some configuration files are generated (they do not exist until the previous command is executed):
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKioL1Np9e3jzc3pAAGgXv9t9dM327.jpg "title=" Picture 1.png "alt=" Wkiol1np9e3jzc3paaggxv9t9dm327.jpg "/>
NETSTAT-TUPLN |grep 53
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/26/27/wKiom1Np9iKhf4SSAAEHax64Lno236.jpg "title=" Picture 2.png "alt=" Wkiom1np9ikhf4ssaaehax64lno236.jpg "/>
Back to the client:
RNDC Reload Loading Area
Vim named.conf Compilation configuration file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/26/27/wKioL1Np9gPAtoX9AANGQdPuPjY496.jpg "title=" Picture 3.png "alt=" Wkiol1np9gpatox9aangqdpupjy496.jpg "/>
Vim Named.rfc1912.zones Compile zone file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKiom1Np9kGQZVuIAAGQa03xGEI958.jpg "title=" Picture 4.png "alt=" Wkiom1np9kgqzvuiaagqa03xgei958.jpg "/>
cd/var/named/chroot/var/named/
Cp-p Named.localhost Abc.com.zone A zone in the Zone profile, where a configuration file is required (-p to indicate a copy of the permission)
Vim Abc.com.zone Edit a new zone file
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/26/27/wKioL1Np9iLyd_jOAAEPaOSpVXg590.jpg "title=" Picture 5.png "alt=" Wkiol1np9ilyd_joaaepaospvxg590.jpg "/>
RNDC Reload Loading the Zone
Vim/etc/resolv.conf (the host as a client for easy testing)
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKioL1Np9iyC3jzAAABPUKJGfdo159.jpg "title=" Picture 6.png "alt=" Wkiol1np9iyc3jzaaabpukjgfdo159.jpg "/>
③ Test (test with this host)
Resolve address (three ways)
Dig www.abc.com
Dig - T mx/ns abc.com
nslookup www.abc.com
Set Q=ANY/NS/MX
Domain name
Host Www.abc.com
Case TWO:
Domain Name: a.com
DNS1:192.168.2.101 (Linux auxiliary)
dns2:192.168.2.102 (Windows Master)
www:1.1.1.1
ftp:2.2.2.2
mail:3.3.3.3
① setting up a primary DNS server in Windows
Control Panel----> Add remove Windows Components----> Network services---->DNS----> Next installation
Administrative Tools---->DNS----> Forward Lookup Zones----> Right-click New Zone----> Primary zone Name: a.com----> Next step complete
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/26/27/wKioL1Np9p2STs3PAAG8IKHFuEU300.jpg "title=" Picture 7.png "alt=" Wkiol1np9p2sts3paag8ikhfueu300.jpg "/>
Configuration:
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/26/27/wKiom1Np9tSwJsc8AAJe48ixnWg574.jpg "title=" Picture 8.png "alt=" Wkiom1np9tswjsc8aaje48ixnwg574.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKiom1Np9t6g2ZPNAAKy92Cr-c4245.jpg "title=" Picture 9.png "alt=" Wkiom1np9t6g2zpnaaky92cr-c4245.jpg "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKiom1Np9vOBv4dIAAIgnpiPlig091.jpg "title=" Picture 10.png "alt=" Wkiom1np9vobv4diaaignpiplig091.jpg "/>
② Configuring a secondary DNS server in Linux
cd/var/named/chroot/etc/
Add a domain:
Vim Named.rfc1912.zones
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/26/27/wKioL1Np9tvRJl9KAAIHowynwWw381.jpg "title=" Picture 11.png "alt=" Wkiol1np9tvrjl9kaaihowynwww381.jpg "/>
RNDC Reload
③ Test
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/26/27/wKioL1Np9uWRQL0nAAHEggZr7dU069.jpg "title=" Picture 12.png "alt=" Wkiol1np9uwrql0naaheggzr7du069.jpg "/>
This article is from "Little Shiziki" blog, please make sure to keep this source http://xiaoxizizi.blog.51cto.com/8809407/1408035