The Linux system establishes the DNS master-slave name server to implement forward reverse query

Source: Internet
Author: User
Tags file copy locale domain name server

Experimental Requirements: Establish DNS the principal and subordinate domain name server implements forward reverse query

Experimental steps:

1. forward Query

Mount and install first Bind Software

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/33/wKioL1T5omLwr-5cAAMnrki4uE4271.jpg " alt= "Wkiol1t5omlwr-5caamnrki4ue4271.jpg"/>

View working directory

650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/37/wKiom1T5oV2zH4iqAAHDiPaA0ik280.jpg " alt= "Wkiom1t5ov2zh4iqaahdipaa0ik280.jpg"/>

Enter the master profile and modify the configuration file's listening port IP The address points to itself, allowing the network segment to be queried for anyone

650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M02/5A/33/wKioL1T5on_R-om3AANVy26DFTA168.jpg " alt= "Wkiol1t5on_r-om3aanvy26dfta168.jpg"/>

Zone file

650) this.width=650; "title=" Qq20150306205406.png "src=" http://s3.51cto.com/wyfs02/M00/5A/37/ Wkiom1t5ojgzpjlpaad-etf6_m4591.jpg "width=" 720 "height=" 339 "alt=" Wkiom1t5ojgzpjlpaad-etf6_m4591.jpg "/>

Enter and configure the locale file

650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/33/wKioL1T5o5SSqIcXAAQ5nYz3yjg136.jpg " alt= "Wkiol1t5o5ssqicxaaq5nyz3yjg136.jpg"/>

on entering named view, and the data file for the zone configuration Named.localhost the contents of the file are copied to Benet.com.zone and re-edit

650) this.width=650; "title=" 5.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/37/wKiom1T5opHDdGOcAAWHaWsbI9M042.jpg " alt= "Wkiom1t5ophddgocaawhawsbi9m042.jpg"/> to establish a forward query


650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/33/wKioL1T5o8KDMuyqAAIKRcjslxY218.jpg " alt= "Wkiol1t5o8kdmuyqaaikrcjslxy218.jpg"/>

specify the native address as DNS Server Address Write etc/resolv.conf file, after writing it, look under

650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M02/5A/37/wKiom1T5owzSmZ-yAAEQkOO5xj0701.jpg " alt= "Wkiom1t5owzsmz-yaaeqkoo5xj0701.jpg"/>

turn off the firewall and turn on DNS Service

650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/33/wKioL1T5pDSwz_kDAAG2TOVdoAg138.jpg " alt= "Wkiol1t5pdswz_kdaag2tovdoag138.jpg"/>

View TCP Port Open

650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/37/wKiom1T5oyngYZaoAANBtAJN4fU383.jpg " alt= "Wkiom1t5oyngyzaoaanbtajn4fu383.jpg"/>

View UDP Port Open

650) this.width=650; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M01/5A/33/wKioL1T5pFTQOI8xAALXOBcz2Fg147.jpg "alt=" Wkiol1t5pftqoi8xaalxobcz2fg147.jpg "/>

Verify the forward Domain name resolution:

Note: If you Host If you can't use it in your life, you'll install it . Host commands such as

650) this.width=650; "title=" 1.jpg "src=" Http://s3.51cto.com/wyfs02/M01/5A/37/wKiom1T5o4awHFEiAABc-IzXgfA213.jpg " alt= "Wkiom1t5o4awhfeiaabc-izxgfa213.jpg"/>

650) this.width=650; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M02/5A/37/wKiom1T5o6KxU1SrAAJGfqeXIFw938.jpg "alt=" Wkiom1t5o6kxu1sraajgfqexifw938.jpg "/>

2. Reverse Query

Set up a reverse query, modify the locale file

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/37/wKiom1T5o7OQe7-RAAGx4nY4Nx8727.jpg " alt= "Wkiom1t5o7oqe7-raagx4ny4nx8727.jpg"/>

View

650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/33/wKioL1T5pN6iEk8PAADELMrKo1E968.jpg " alt= "Wkiol1t5pn6iek8paadelmrko1e968.jpg"/>

will be Benet.com.zone file Copy To modify, modify reverse query.

650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/37/wKiom1T5o9Xyzfk4AAITE_75EP4332.jpg " alt= "Wkiom1t5o9xyzfk4aaite_75ep4332.jpg"/>

Reload and verify reverse Domain name resolution:

650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M02/5A/33/wKioL1T5pPzDi3WeAAJmE2HNOeo111.jpg " alt= "Wkiol1t5ppzdi3weaajme2hnoeo111.jpg"/>

3.DNS master-slave Domain Services

First in DNS configuring from the server IP address is 192.168.10.11 , verify that the two servers are connected,

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/33/wKioL1T5parjz2_bAABToh-PZi8457.jpg " alt= "Wkiol1t5parjz2_baabtoh-pzi8457.jpg"/>

650) this.width=650; "title=" 2.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/37/wKiom1T5pJui2hQQAACz6S37BkI068.jpg " alt= "Wkiom1t5pjui2hqqaacz6s37bki068.jpg"/>

650) this.width=650; "style=" Float:none; "title=" 00.png "src=" http://s3.51cto.com/wyfs02/M01/5A/33/ Wkiol1t5plihbqavaaiunbm1dny761.jpg "alt=" Wkiol1t5plihbqavaaiunbm1dny761.jpg "/>

650) this.width=650; "style=" Float:none; "title=" 01.png "src=" http://s3.51cto.com/wyfs02/M01/5A/37/ Wkiom1t5pudqfzgeaakx__9qyls266.jpg "alt=" Wkiom1t5pudqfzgeaakx__9qyls266.jpg "/>

then mount and install Bind Software

650) this.width=650; "title=" 3.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/33/wKioL1T5pj_B4JnjAAMnrki4uE4708.jpg " alt= "Wkiol1t5pj_b4jnjaamnrki4ue4708.jpg"/>

if rpm install dependencies, then use yum warehouse installation, first look at yum yum vi editor configuration file ( abc is the file name, name baseurl is a package-mounted path, enabled gpgcheck means not to check the software serial number)

Note: Yum The warehouse is well built and can be inspected ( Yum list)

650) this.width=650; "title=" 4.png "src=" Http://s3.51cto.com/wyfs02/M02/5A/33/wKioL1T5pp3ySnDIAAFLOTCppM4836.jpg " alt= "Wkiol1t5pp3ysndiaaflotcppm4836.jpg"/>

installation Bind Software

650) this.width=650; "title=" 1.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/33/wKioL1T5p5Ci-EmgAABiBE6VC0k736.jpg " alt= "Wkiol1t5p5ci-emgaabibe6vc0k736.jpg"/>

Enter the master profile and modify the configuration file's listening port IP The address points to itself, allowing the network segment to be queried for anyone

650) this.width=650; "title=" 6.png "src=" Http://s3.51cto.com/wyfs02/M00/5A/37/wKiom1T5pryRcherAANIm69mWMU965.jpg " alt= "Wkiom1t5pryrcheraanim69mwmu965.jpg"/>

Modify the Zone data file, type slave , and specify Masters Primary Server IP Address

650) this.width=650; "title=" 7.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/33/wKioL1T5p-CAEAstAAP79W44CQk892.jpg " alt= "Wkiol1t5p-caeastaap79w44cqk892.jpg"/>

View Slaves file, and then turn the firewall off, turn on DNS Service

650) this.width=650; "title=" 8.png "src=" Http://s3.51cto.com/wyfs02/M01/5A/37/wKiom1T5ptiivEI9AAJ4qas3HRc518.jpg " alt= "Wkiom1t5ptiivei9aaj4qas3hrc518.jpg"/>

Modify DNS Primary zone configuration file ( Allow-transfer: is to allow forward zone data to be downloaded from the server )

650) this.width=650; "title=" linux-1. png "src=" http://s3.51cto.com/wyfs02/M00/5A/33/ Wkiol1t5qmhxj38raaqgk7fowpw465.jpg "alt=" Wkiol1t5qmhxj38raaqgk7fowpw465.jpg "/>

specify the native address as DNS Server Address Write etc/resolv.conf files, and view files that have been synced.

650) this.width=650; "style=" width:825px;height:388px; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M00/5A/37/ Wkiom1t5p9azbtobaanj_gs_rfw678.jpg "width=" 895 "height=" 446 "alt=" wkiom1t5p9azbtobaanj_gs_rfw678.jpg "/>

                                                       Span style= "Font-family:calibri, ' Sans-serif '; color: #984806; font-size:21px;" >   test    finish   

Linux system establishes DNS master-slave name server to implement forward reverse query

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.