Linux Build cache name servers

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


Specific steps:

1.? Insert the installation disc and mount it, then install the bind package and the associated package. :

? ??

? ?

? ? ? ??

2.? Edit main profile

?? Master Profile Named.conf/etc/ directory, if you have installed Span style= "FONT-FAMILY:CALIBRI;" >bind-chroot package, the main configuration file is located by default in / var/named/chroot/etc/ directory, need to be created manually by the user. In named.conf # // "the beginning part represents a comment file (a large segment comment can be used" /* */

? ?

? ?

?

directory< Span style= "font-family: ' The song Body '; The items are usually left out, and other configuration items can be omitted. If you do not specify listen-on Span style= "FONT-FAMILY:CALIBRI;" >named default on all interfaces udp Span style= "font-family: ' The song Body '; > port monitoring service, do not specify allow-query configuration items, The default is to respond to query requests from all clients. dump-file statistics-file etc. configuration items are used to specify the location of the cache database files, status statistics files. Added " Zone ". " In ? {}; section of the root locale, although the cache server does not have autonomous zone data, it can iterate over the root server and feed the resulting parsing results back to the customer.

sometimes in order to improve the resolution efficiency, you can also not query the root partition, but the query request from the client to the domestic carrier's DNS server (such as the 202.106.0.20 in Beijing ,202.106.148.1), the cache server receives the returned query result and then passes it to the client. Just remove the " Zone ". " In ? {... }; settings and set correctly in the global configurationForwardersparameter to achieve this function. As shown below:

[[Email protected]lhost ~]# vim/var/named/chroot/etc/named.conf

Options {

...... // omit part of the content

forwarders {202.106.0.20;202.106.148.1};

};

? ?

3.? confirm the zone database file for the root domain named.ca

The zone database file for the root zone is located by default in file /var/named/chroot/var/named/named.ca , which records the Internet the domain name and IP address of the root domain server , and other related information. :

? ?

? ?

4.? Start the named service

Execute the "servicenamed start" command, start the named Service, and confirm with the netstat command The port listening status of the named service. If the service fails to start or if the UDP port is not listening properly , you can troubleshoot errors based on the error message (or The log records in the/var/log/messages file) , and then restart the service. :

??

? The cache name server has been built

The primary domain name server and the cache domain name service can refer to the following links:

? primary Domain Name server : http://blog.51cto.com/yangkui/2047701

? From the domain name server: http://blog.51cto.com/yangkui/2048153

? ?





Linux Build cache name servers

Related Article

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.