Build DNS servers in Linux for forward, reverse, and access to different DNS resolution

Source: Internet
Author: User

Achieve the goal:

    1. Building a DNS server

      1) Sina Server (dns.sina.com)

      Dns.sina.com-->192.168.4.5

      www.sina.com-->1.2.3.40

      news.sina.com-->1.2.3.45

      2) Sohu Server (dns.sohu.net)

      dns.sohu.com-->192.168.4.6

      movie.sohu.net-->5.6.7.80

      study.sohu.net-->5.6.7.85

    2. Client test:

      To 192.168.4.5 can query Movie.sohu.net, also can contrast 1.2.3.40

      To 192.168.4.6 can query www.sin.com. can also counter-check 5.6.7.80


Experimental process:

The prerequisite has been fully installed BIND, Bind-chroot package.


Sina Server (svr5.tarena.com) configuration details

Master configuration file configuration details:/var/named/chroot/etc/named.conf


650) this.width=650; "title=" Zhu Profile 1.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6B/DF/ Wkiol1u440rg1suuaacek89v3gy408.jpg "alt=" Wkiol1u440rg1suuaacek89v3gy408.jpg "/>

650) this.width=650; "title=" main profile 2.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6B/E3/ Wkiom1u44eucnuh3aacbkavzhze913.jpg "alt=" Wkiom1u44eucnuh3aacbkavzhze913.jpg "/>


DNS domain resolution file:/var/named/chroot/var/named/sina.com.zone

650) this.width=650; "title=" Sina.com.zone.png "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/6B/E3/ Wkiom1u44eurknxwaac9rlitgjm193.jpg "alt=" Wkiom1u44eurknxwaac9rlitgjm193.jpg "/>


DNS domain resolution file:/var/named/chroot/var/named/1.2.3.arpa

650) this.width=650; "title=" 3.2.1.arpa.png "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/6B/DF/ Wkiol1u440mww0graaccwy4ew7q015.jpg "alt=" Wkiol1u440mww0graaccwy4ew7q015.jpg "/>






Sohu Server (sv6.tarena.com) configuration details


Master configuration file configuration details:/var/named/chroot/etc/named.conf


650) this.width=650; "title=" Zhu Profile 1.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6B/DF/ Wkiol1u45h-zvpliaablqqkl-hu262.jpg "alt=" Wkiol1u45h-zvpliaablqqkl-hu262.jpg "/>

650) this.width=650; "title=" Zhu Profile 2.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/6B/E3/ Wkiom1u44ygbdy0taacvhnyusm0304.jpg "alt=" Wkiom1u44ygbdy0taacvhnyusm0304.jpg "/>



DNS domain resolution file:/var/named/chroot/var/named/sohu.net.zone

650) this.width=650; "title=" Sohu.net.zone.png "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/6B/E3/ Wkiom1u44ydcr9hwaadeowr3wgi440.jpg "alt=" Wkiom1u44ydcr9hwaadeowr3wgi440.jpg "/>



DNS domain resolution file:/var/named/chroot/var/named/5.6.7.arpa

650) this.width=650; "title=" 5.6.7.arpa.png "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/6B/DF/ Wkiol1u45h6rjjigaacrgsdgqcw215.jpg "alt=" Wkiol1u45h6rjjigaacrgsdgqcw215.jpg "/>


Above configuration complete must restart named service, let the configuration take effect!!!!





Experimental validation:


650) this.width=650; "title="%10f ' Uwe9ij7~cc{mno7zg1.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/ 6b/df/wkiol1u45zbdo0ltaagbabycliq585.jpg "alt=" Wkiol1u45zbdo0ltaagbabycliq585.jpg "/>

650) this.width=650; "title=" pl25h ' 2_xaip06wosp9m5qc.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/ 6b/e3/wkiom1u45dezbujcaacroa4oyxs476.jpg "alt=" Wkiom1u45dezbujcaacroa4oyxs476.jpg "/>





Experimental Summary:

To do experiments is not to do experiments, to remember is the principle of the experiment, how to achieve, experimental premises and the doctrine of error-prone places, for reference only.

Check that the configuration is correct can be used as follows (for example, svr5.tarena.com):

To check the master configuration file:

Named-checkconf/var/named/chroot/etc/named.conf


Check parsing file:

Named-checkzone Sina.com/var/named/chroot/var/named/sina.com.zone











This article is from the "Sunandmoon" blog, make sure to keep this source http://ssunandmoon.blog.51cto.com/10047194/1637719

Build DNS servers in Linux for forward, reverse, and access to different DNS resolution

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.