Deploying and Tuning 3.3 DNS installation configuration-3

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.