Build a Dns server in wdos

Source: Internet
Author: User
Build Dns server 1 in wdos system. introduction: 1. about dns server: www.2cto. the function of the comDns server is to convert the domain name you entered in the address bar of your browser to the corresponding IP address when you access the network, or convert the IP address to the corresponding domain name in turn...
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-2:-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-1 2) modify the main configuration file named. conf, change to any where all labels in-3, save and exit. 2-3:-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 3-1:-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 4-1:-1 5. in the/var/named/chroot/var/named Directory, set dingding.com's reverse region file dingdingding.com. zone, 4-2:-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 logs and discover ding The access permission to the ding.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
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.