DNS (domain Name System), the Internet as the domain name andIP Addressone of the mutual mappingsDistributed databaseTo make it easier for users to accessInternet, instead of remembering the number of IP strings that can be read directly by the machine. ThroughHostname, the process of eventually getting the IP address for that hostname is called Domain name resolution (or hostname resolution). The DNS protocol runs onUdpprotocol, use the port number 53.
Linux systems provide DNS services and need to install bind applications. Detailed instructions below:
Preparation of the installation configuration: two identical versions of Linux virtual hosts, Yum installs the same version of BIND app
My two virtual machine addresses:
192.100.110.27
192.100.110.28
Bind master configuration file:
/etc/named.conf
/etc/named.rfc1912.zones
One, the DNS cache server.
In a LAN, there are many client PCs, access to the network is the need to use DNS resolution, each server to the root server to send requests, will cause the root server too much pressure, while consuming a lot of bandwidth. In order to solve this problem, establish a DNS cache server in the local area network, the resolution request of each PC can be cached, when the resolution request of the PC in the LAN, there is cache record in the cache server, the resolution request of the PC will go directly to the record of the cache server to find the resolution target.
The cache server listens for external addresses
Find the following in/etcc/named.conf
Listen-on Port 53 {127.0.0.1;};
Join in the rear
192.100.110.27;
As follows: Listen-on port 53 {127.0.0.1;192.100.110.27;};
Will
allow-query {localhost;}; Modified to: allow-query {any;};
Comment on the information:
Dnssec-validation yes;//bindkeys-file "/etc/named.iscdlv.key";//Managed-keys-directory "/var/named/dyn Amic ";
The cache server configuration is complete and the service can be started.
This article is from the Linux Getting Started to architecture blog, so be sure to keep this source http://someonly.blog.51cto.com/8946910/1917047
Related configuration caches for BIND applications that provide the DNS caching service under Linux