Build Dns Server 1 in wdos system. introduction: 1. about dns server: www.2cto.com Dns server, the function is to convert the domain name you entered in the browser address bar to the corresponding IP address when you access the network, or, in turn, convert the IP address to the corresponding domain name. 2. description of the packages to be installed during the installation process: bind provides the main program of the Domain Name Service and the related file bind-utils, provides DNS server testing tool programs (such as nslookup and host) bind-chroot, provide a disguised root directory for bind to enhance security (use the "/var/named/chroot/" folder as the root directory of BIND) caching-nameserver, provide the necessary default configuration files for configuring BIND as the cache Domain Name Server. These files can also be used as a reference when configuring the master or slave Domain Name Server. the dns daemon is named as the standard system service script. You can control the server program through "service named start/stop/restart; by default, named listens to TCP and UDP ports 53. UDP port 53 is generally open to all clients to provide resolution services. TCP port 53 is generally only open to specific slave domain servers, improves the resolution record transmission channel; Www.2cto.com 2. procedure: 1. install the required package bind, bind-libs bind-utils bind-chroot and caching-nameservert2. modify the main configuration file/var/named/chroot/etc/named. conf, create a forward/reverse region file 3. test 4. possible error solution 3. setup process 1. by default, wdos does not install the required bind, bind-libs bind-utils bind-chroot, and caching-nameserver packages, you can run the command yum install-y bind-libs bind-utils bind-chroot and yum install-y caching-nameserver to install bind-libs bind-utils bind-chroot. 1-1 and 1-2: Figure 1-1 1-22. modify the main configuration file: www.2cto.com 1) Copy named. caching-nameserver.conf file to a new file and name it named. conf, the required command shows cd/var/named/chroot/etc, cp-p named. caching-nameserver.conf named. conf Figure 2-1 2) modify the master configuration file named. conf, change to any in all the labels in Figure 2-3, save and exit. Figure 2-2 3. modify the extension file/var/named/chroot/etc/named of the host configuration file. rfc1912.zones add forward and reverse domain names at the end of the file. Here, use dingding.com and IP Address: 192.168.1.22 as an example, as shown in Figure 3-1 4. configure the forward/reverse region file www.2cto.com 1) set the forward region file dingding.com in the/var/named/chroot/var/named directory, as shown in Figure 4-1 5. in the/var/named/chroot/var/named directory, set dingding.com's reverse region file dingdingding.com. zone, as shown in Figure 4-2 P.s. note that the domain names here are all English characters. end 4. test 1. forward parsing: 2. reverse resolution: 5. problems that may occur during installation 1. error: 2. check day And the access permission to the dingding.com region file is denied, as shown in www.2cto.com 3. check the group of the region file to be resolved in reverse direction. The owner of the file to be resolved in reverse direction is root, as shown in figure 4. go to the directory of the forward and reverse regions, change the owner of the forward and reverse regions to named, and check whether the modification is successful. As shown in: 5. Restart the named service. 6. test again. Author shen _ ding