Building the DNS service

Source: Internet
Author: User

    1. Related configuration files for DNS

      /etc/hosts Local Host List

      /etc/nssswitch.conf Local Host Query method

      /etc/host.conf

      /etc/resolv.conf Client DNS Queries

      Bind and Bind-chroot for DNS packages

      The home directory for DNS is in/var/named/chroot

      /var/named/chroot/etc/named.conf DNS Global Security configuration file

//name.rfc1912.zones Log DNS forward and reverse resolved configuration files

Two Start the experiment.

First enter the IP address and the domain name in the/etc/hosts to write down

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/69/wKiom1SJhFaDIDYkAAB4Nca4Inw419.jpg "/>

Then verify that the IP address can be seen

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/55/67/wKioL1SJhO6ydgY7AAFaciNcQsE388.jpg "/>

Then use Yum to install both the bind and bind-chroot packages, which is the DNS installation package

Then the service named restart can take effect,

Immediately after Chkconfig named on, the reboot will take effect.

Then you can see the named folder under/var.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/55/69/wKiom1SJhFbC9RNQAAAt3T8t-sM973.jpg "/>

Enter/VAR/NAMED/CHROOT/ETC to see named.conf this configuration file.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/67/wKioL1SJhO6Tt6vpAABv-pHbfdU235.jpg "/>

You can get into it.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/69/wKiom1SJhFahIfttAADV6mkVHZI262.jpg "/>

Then go into the named.rfc1912.zones, and configure the forward and reverse parsing of the domain name

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/67/wKioL1SJhO7DGWPXAAB-1DWyGlU767.jpg "/>

Then go into the/var/named/chroot/var/named to see the two files of Named.localhost and Named.empty

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/69/wKiom1SJhFbjFm_vAAB9KzcdfXY586.jpg "/>

The next thing to do is to create the files Example.zone and zone.example two files, and then copy the contents of Named.localhost and named.empty to them, it is worth noting that all groups must be named

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/55/67/wKioL1SJhO7TDHE2AAEzL9Z0sR0896.jpg "/>

Then go into the forward domain file Example.zone and reverse domain name file zone.example, modify it as follows

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/55/69/wKiom1SJhFqCBMFfAABlNNYmgYw363.jpg "/>

Then restart the service

Finally, with Nslookup analysis, through the know, Test success!!!

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/55/67/wKioL1SJhPKT4IrnAABjYOaTZS0884.jpg "/>

The experiment is over!!!

Building the DNS service

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.