Linux DNS from a domain name server

Source: Internet
Author: User
Tags system log domain name server

build from a domain name server

Specific steps:

1. confirm the local network address, host mapping, default DNS server address

the IP address from the domain name server is set to 173.16.16.6and the hostname is set to ns2.benet.comby modifying the network configuration file. In addition, host mapping files /etc/hosts and DNS parsing files /etc/resolv.conf Content is the same as the content in the master server.


2. Establish the master profile named.conf

from the domain name server, the contents of the named.conf file are much the same as the contents of the primary server, but do not need to set "allow-transfer ... "; more crucially, Zone The zone type for the section should be set to " slave ", and add" Masters {} ; "Statement to specify the address of the primary domain name server. :

because the zone data file from the server is downloaded from the primary server, the name saved by the file can be defined by itself, without having to be consistent with the primary server. However, it is important to note thatthe named service runs as a usernamed "named" by default, so verify that the named User has write access to the directory.

3. Start the named service to see if the zone data file is successfully downloaded

Execute the "service named start" command from the domain name server to start the named Service.

If configured correctly, named will automatically download the specified zone data file from the primary domain name server and save it to the "slaves/" directory. In addition, The process of downloading zone data files can also be observed through the system log file/var/log/messages.

4. 

when verifying from a domain name server, only the client's preferred The DNS server address is set to 173.16.16.6(from the IP address of the domain name server ), using the nslookup command to perform the normal test. :


From the domain name server to complete!!!

About the primary domain name server you can refer to one of my other articles here is the address link:

http://blog.51cto.com/yangkui/2047701





Linux DNS from a domain name server

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.