Only one DNS server is not insured, now give him a configuration from the server.
Install the configuration DNS server on another virtual machine. First look at the virtual machine IP: 192.168.1.111
Ifconfig
Give the bind and dig commands from the installation
Yum install-y bind
Yum Install-y bind-utils
To open the master configuration file
Vim/etc/named.conf
- 127.0. 0.1 ; }; Listen :1;}; Change to // listen-on port 127.0.0.1;}; // listen-on-v6 port: 1;};
Comment out the default listener so the port, for a server, cannot have only one IP
Add a section at the bottom
Zone"123.com"In {type slave; File"Slaves/123.com.zone"; Masters {192.168.1.117; };}; Zone"1.168.192.in-addr.arpa"In {type slave; File"Slaves/1.168.192.zone"; Masters {192.168.1.117; };};
Start the DNS server
/etc/init.d/named start
See if there are any generated files
LS/var/named/slaves/
1.168.192.zone 123.com.zone
Test parsing
Dig @192.168. 1.111 www. 123. com
Parse success
Open the configuration file above the main, add a domain name
Vim/var/named/123. Com.zone
2015122601 ; serial changed to 2015122602 ; serial add one row to the bottom Denny in A 111.111 . 111.111
Restart
/etc/init.d/named restart
Test Master
Dig @192.168. 1.117 Denny. 123 . com parsing succeeded
Test from
Dig @192.168. 1.111 Denny. 123 . com parsing failed because there is a time interval to check that the serial number has not changed.
In order to update from the synchronization, open the master's main configuration file
Vim/etc/named.conf
Zone"123.com"In {type master; File"123.com.zone";}; Zone"1.168.192.in-addr.arpa"In {type master; File"1.168.192.zone";}; Change to Zone"123.com"In {type master; File"123.com.zone"; Notify yes; Also-notify {192.168.1.111; };}; Zone"1.168.192.in-addr.arpa"In {type master; File"1.168.192.zone"; Notify yes; Also-notify {192.168.1.111; };};
Restart
/etc/init.d/named restart
Test from
Dig @192.168. 1.111 Denny. 123 . com parsing succeeded
See the 123.com.zone from
CAT/var/named/slaves/123. Com.zone
The added Denny 111.111.111.111 has been updated.
Deploying and Tuning 3.3 DNS installation configuration-3