DNS Server simple Erection Test

Source: Internet
Author: User

Enough free time to set up a lamp and a webmail with Postfix. All two servers require DNS. So first get a DNS, make a record, to facilitate the reference later. The specific steps are as follows: 1.DNS software name bind.     First determine, install the bind wood has? Reference command: Rpm-qa |grep "bind"

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/78/DD/wKioL1aEi3-zPSBeAAAdFvXnxQ4217.png "title=" QQ picture 20151231095106.png "alt=" Wkiol1aei3-zpsbeaaadfvxnxq4217.png "/>

2.DNS main File description/etc/named.conf zone file location/VAR/NAMED/3. Configuration of the Master profile vim/etc/named.conf

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/DD/wKioL1aEjL3BUsjQAAAlL5wXZMg100.png "title=" QQ picture 20151231095801.png "alt=" Wkiol1aejl3busjqaaall5wxzmg100.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/DE/wKioL1aEjQzQ5-h3AAAnFraD1ss083.png "title=" QQ picture 20151231095920.png "alt=" Wkiol1aejqzq5-h3aaanfrad1ss083.png "/>

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/78/E0/wKiom1aEjRWzGlSjAAAY0Dt_ghE163.png "title=" QQ picture 20151231095958.png "alt=" Wkiom1aejrwzglsjaaay0dt_ghe163.png "/>

Some parameter descriptions:

Listen-on Port: (any;}   This is the listening port, the default is to listen only local, I changed to any.   Directory This is the zone's access directory Dump-file Statistics-file memstatistics-file These three are statistical files, generally without modification, the default is available. Allow-query {Any} This parameter is very important, my understanding is to allow reply to where the request, the default is local, I here to modify into any of the bottom three DNS beginning of the file, the default is the zone file configuration, we need to set two zone, a positive solution, a Inverse solution. There is also a zone of the default type hint. Never delete this zone ".".   This is the resolution of DNS other than the native setting DNS.   Zone settings are simple, reference to write can be, it should be noted that the anti-solution zone name of the writing.   Watch the Zone "168.192.in-addr.arpa". My intranet IP address is 192.168.0.107. Anti-write is: 0.0.168.192. If the address is 1 paragraphs, for example, 192.168.1.0/24, the reverse is 0.1.168.192.      The previous 0 does not write 1.168.192. Configuration of the 4./var/named zone file

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/78/E0/wKiom1aEkgjAlNNLAAAoewzBEgc469.png "style=" float: none; "title=" QQ picture 20151231101944.png "alt=" Wkiom1aekgjalnnlaaaoewzbegc469.png "/>

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/78/DE/wKioL1aEkibRj9FMAAAaRJvQygM559.png "style=" float: none; "title=" QQ picture 20151231102014.png "alt=" Wkiol1aekibrj9fmaaaarjvqygm559.png "/>

      parameter Description:      ttl   time to live.      SOA    Certified Servers           am.    This idea, this is an e-mail address [email protected]     2015123001 3h  15M 1W 1D   The first parameter is the number, the second parameter is the refresh time, the third parameter is the attempt to reconnect after the connection fails, the fourth parameter is the expiration time, and the 5th parameter is the save time.                                5. Start server   test server.         Start:        service named  start       chkconfig named on                See start log:               tail -n 30 /var/log/messages                Test:        Note a detail, we need to test the DNS of the intranet, we need to change the DNS of our intranet computer to the address of our DNS server. Linux Modify command:               vim /etc/below resolv.conf               need to set iptables, I normally shut down the iptables              service.  iptables stop               Then use dig   as follows:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/78/DF/wKioL1aElPfzoJ7cAAAYd48pEJ0766.png "style=" float: none; "title=" QQ picture 20151231103140.png "alt=" Wkiol1aelpfzoj7caaayd48pej0766.png "/>

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/78/E1/wKiom1aElNnTRFY6AAAx90Ty3kA612.png "style=" float: none; "title=" QQ picture 20151231103155.png "alt=" Wkiom1aelnntrfy6aaax90ty3ka612.png "/>

650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M02/78/DF/wKioL1aElPmAcmnfAAHzgDSpEKk282.jpg "style=" float: none; "title=" QQ picture 20151231103253.jpg "alt=" Wkiol1aelpmacmnfaahzgdspekk282.jpg "/>

Windows

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/78/E1/wKiom1aElRng7zDUAAAu4HflL08350.png "title=" QQ picture 20151231103405.png "alt=" Wkiom1aelrng7zduaaau4hfll08350.png "/>

This article is from the "Gome Learning" blog, so be sure to keep this source http://goome.blog.51cto.com/4045241/1730248

Simple setup test for DNS server

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.