Easily build your own DNS server under Linux

  
 

Friends who frequently go online may go to large websites such as Sina and Sohu. They only need to enter their URLs in the browser to access them. It seems very simple, but technically, it involves a complicated process. When accessing the webpage, first enter the domain name of the website in the browser, then the browser will convert the input website domain name into the corresponding IP address according to the setting of the local DNS server, and then request the data on the server corresponding to the IP. Finally, the requested data is displayed in the browser. The most important part of this process is the conversion from domain name to IP address, and this work is done by DNS server.

1. DNS Service Overview DNS is the abbreviation of Domain Name System, which is the domain name system. The main function of the DNS service is to convert the domain name into the corresponding IP address. The system that provides the DNS service is the DNS server. DNS servers can be divided into three types: primary DNS, secondary DNS, and Cache-only server. Master DNS, which itself provides the dns service, and itself contains zone data files. The Slave DNS provides the dns service together with the Master. When the configuration information on the Master server is modified, it is automatically updated to the Slave server for synchronization. Cache-only server, without its own zone data file, just helps the client to request a query from the external dns, and then saves the found result to its cache. The function of the DNS service under the Linux system is realized by the bind software. Almost every Linux distribution comes with this DNS service software. The following describes the installation, configuration and use of the DNS service.

Second, the establishment of the DNS service Here we talk about the environment: operating system
: Red Hat Enterprise Linux Server release 5bind software version: the system comes with bind-9.3.4

1. Installing bind software Rhel5 system installation bind needs to install bind-utils, bind-chroot, ypbind, bind-libs, caching-nameserver several packages that support bind. Check if the bind software is properly installed and execute the following command: [root@localhost ~]# rpm -qa

Copyright © Windows knowledge All Rights Reserved