Building the DNS service

Source: Internet
Author: User

Building the DNS service



A. 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 Enquiry

Bind and the Bind-chroot to be DNS the package

DNS the home directory in /var/named/chroot

/var/named/chroot/etc/named.conf DNS The global Security configuration file

//name.rfc1912.zones Record DNS forward and reverse parsed configuration files

Two Start the experiment.

First Enter /etc/hosts will IP address and domain name write down

650) this.width=650; "height=" "src=" http://s3.51cto.com/wyfs02/M02/70/A0/wKiom1W6PI-QNZ3iAAB4U1b_fsI947.jpg " alt= "Wkiom1w6pi-qnz3iaab4u1b_fsi947.jpg"/>

then verify that the discovery can be seen IP Address

650) this.width=650; "height=" 151 "src=" Http://s3.51cto.com/wyfs02/M00/70/9D/wKioL1W6PoTgk8ZJAAFawfBlnww920.jpg " alt= "Wkiol1w6potgk8zjaafawfblnww920.jpg"/>

and then use Yum installation Bind and the Bind-chroot these two packages, which are DNS the installation package

then servicenamed Restart will be effective,

immediately chkconfignamed on You can restart the operation.

then you can / var See below named 's folder.

650) this.width=650; "height=" src= "Http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6PJSAzv8sAAAxGeSeaQQ321.jpg" alt= "Wkiom1w6pjsazv8saaaxgeseaqq321.jpg"/>

Enter /var/named/chroot/etc you can see the named.conf This configuration file has

650) this.width=650; "height=" src= "Http://s3.51cto.com/wyfs02/M01/70/9D/wKioL1W6PoXQObLQAABv7kjYHaQ740.jpg" alt= "Wkiol1w6poxqoblqaabv7kjyhaq740.jpg"/>

You can get into it.

650) this.width=650; "height=" 193 "src=" Http://s3.51cto.com/wyfs02/M01/70/9D/wKioL1W6PoaAOdJkAADWDBlB-Pk358.jpg " alt= "Wkiol1w6poaaodjkaadwdblb-pk358.jpg"/>

then enter Named.rfc1912.zones , the forward and reverse parsing configuration for the domain name

650) this.width=650; "height=" 159 "src=" Http://s3.51cto.com/wyfs02/M01/70/A0/wKiom1W6PJeQMLcAAACDVgA9XUg726.jpg " alt= "Wkiom1w6pjeqmlcaaacdvga9xug726.jpg"/>

then go to /var/named/chroot/var/named can be seen in Named.localhost and the Named.empty these two files

650) this.width=650; "height=" src= "Http://s3.51cto.com/wyfs02/M02/70/9D/wKioL1W6PojwdL8dAACEMWorwTA093.jpg" alt= "Wkiol1w6pojwdl8daacemworwta093.jpg"/>

the next thing to do is create the file Example.zone and the Zone.example these two files, and then the Named.localhost and the Named.empty of the content Copy It is worth noting that all groups must be named

650) this.width=650; "height=" 167 "src=" Http://s3.51cto.com/wyfs02/M00/70/9D/wKioL1W6PoyDkeWZAAFG6Y46PsY984.jpg " alt= "Wkiol1w6poydkewzaafg6y46psy984.jpg"/>

then you go to the forward domain file . Example.zone and reverse domain name file Zone.example , modify it to the following

650) this.width=650; "height=" 127 "src=" Http://s3.51cto.com/wyfs02/M01/70/A0/wKiom1W6PJ2jBcKcAABvXjMB7fA524.jpg " alt= "Wkiom1w6pj2jbckcaabvxjmb7fa524.jpg"/>

650) this.width=650; "height=" 126 "src=" Http://s3.51cto.com/wyfs02/M00/70/A0/wKiom1W6PJ7gXDMEAABlS5ig76A887.jpg " alt= "Wkiom1w6pj7gxdmeaabls5ig76a887.jpg"/>

Then restart the service

Finally, use nslookup analysis, through the know, Test success!!!

650) this.width=650; "height=" 94 "src=" Http://s3.51cto.com/wyfs02/M01/70/9D/wKioL1W6Po-hMI3WAABnxZ_AQDg182.jpg " alt= "Wkiol1w6po-hmi3waabnxz_aqdg182.jpg"/>

The experiment is over!!!






This article is from the "Endmoon" blog, make sure to keep this source http://endmoon.blog.51cto.com/10533729/1680361

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.