DNS Cache Server Construction

Source: Internet
Author: User

The DNS Cache Server can speed up DNS access and implement fast resolution for LAN access. It is suitable for enterprise local networks with low Internet bandwidth, reducing repeated DNS queries and improving the speed through caching! How to Implement DNS cache? Next I will share with you how to build a DNS Cache service.

1. Experiment Preparation: The experiment environment is rhel5.9. First, set up a Primary Domain Name Server. Assume that the domain name is apk.com and the ip address is 192.168.10.10. Prepare a host with the ip address 192.168.10.12 to configure the cache server.

2. For how to build a Primary Domain Name Server, refer to the previous blog

3. Configure the cache DNS Server

(1) install software

[Root @ localhost ~] # Yum install-y bind-chrootcaching-nameserver

(2) create and edit the master configuration file

[Root @ localhost etc] # cp-p named. caching-nameserver.confnamed.conf ...... Cp-p keep attributes unchanged

[Root @ localhost etc] # vim named. conf

Options {

Listen-on port 53 {192.168.10.12 ;};...... Modify listening port

Listen-on-v6 port 53 {: 1 ;};

Directory "/var/named ";

Dump-file "/var/named/data/cache_dump.db ";

Statistics-file "/var/named/data/named_stats.txt ";

Memstatistics-file "/var/named/data/named_mem_stats.txt ";

Forwarders {192.168.10.10 ;};...... When there is no corresponding resolution in the local cache, specify to go to 192.168.10.10 for analysis.

......

Allow-query {any ;};...... Set permissions to any host

Allow-query-cache {any ;};

};

......

View localhost_resolver {

Match-clients {any ;};

Match-destinations {any ;};

(3) enable the Service

[Root @ localhost etc] # service named restart

Stop named: [OK]

Start named: [OK]

[Root @ localhost etc] # chkconfig named on

4. Verification

(1) Change the DNS address of win7 to the cached DNS address.

(2) Use www.tar ena.com on win7.

(3rd) modify the address of the main Domain Server www.tar ena.com and restart the service.

[Root @ ser1 named] # vim tarena.com. zone

$ TTL 86400

@ In soa tarena.com. root.tarena.com .(

2014030701; Serial

28800; Refresh

14400; Retry

3600000; Expire

86400); Minimum

In ns dns1.tarena.com.

Dns1 in a 192.168.10.10

Www in a 192.168.10.19

Bbs in a 192.168.10.16

Localhost. localdomain. in a 192.168.10.12

[Root @ ser1 named] # service named restart

Stop named: [OK]

Start named: [OK]

(In the case that the dnsserver is not retained again in the 4th Region, continue to use www.tar ena.com in win7.)

(5) restart the cache DNS Service

[Root @ localhost etc] # service named restart

Stop named: [OK]

Start named: [OK]

[Root @ localhost etc] #

(6) re-verify the resolution result

5. We can also create a named. ca root region data file method to build a DNS Cache Server.

First download the data file at ftp://ftp.internic.org/domain/name.root

Change the name to var/named. ca.

[Root @ host ~] Mv named. root/var/named/chroot/var/named. ca

RHEL6 server build DNS Server

Linux RHEL 6.x DNS Server

Ubuntu DNS Server Configuration

Configure DNS server in Solaris

Use MySQL and DNS view for intelligent DNS in CentOS 6.3 x64

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.