Implementing DNS delegation by modifying files

Source: Internet
Author: User

Before we talked a lot about the configuration of DNS, but those are operating in the graphical interface, let's talk about the use of modified files to implement some of the common functions of DNS.

I believe that the friends who are familiar with DNS should know that there is such a path file in our server's disk: C:\Windows\System32\dns, this file is the location of DNS in the server which we often mentioned earlier, In the DNS folder there is a name: Boot file, this file is the DNS service boot file, but in the system by default, the DNS service is not from the file boot, but from the registry boot, then how can let the system boot from the boot file DNS, we will experiment to understand:

DNS on SERVER01 is responsible for parsing tom.com, by modifying the file to delegate sh.tom.com to Server02 resolution, the specific experimental topology is as follows:

650) this.width=650; "Width=" 644 "height=" 310 "title=" delegated "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" delegate "src=" http:// S3.51cto.com/wyfs02/m00/5c/07/wkiom1uzcbgbcgqnaacortyazfg801.jpg "border=" 0 "/>

1. Create a delegate on Server01:

Right-Server01 The DNS server, click Properties:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/07/wkiom1uzcblbj0rcaaeqrefjatw113.jpg "border=" 0 "/>

Click Advanced:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/07/wkiom1uzcboybkypaafygrrfb7s385.jpg "border=" 0 "/>

Click Load Zone Data at startup, select from File:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/01/wkiol1uzcu-h8eq1aafmeqae1s8870.jpg "border=" 0 "/>

Click Apply and click OK.

Open C:\Windows\System32\dns This directory:

650) this.width=650; "Width=" 644 "height=" 454 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/01/wkiol1uzcvcsvzgoaagtjluynoo449.jpg "border=" 0 "/>

Right-click the boot file and select open from Notepad:

650) this.width=650; "Width=" 644 "height=" 364 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/01/wkiol1uzcvdbd31naacfw1fidzc390.jpg "border=" 0 "/>

Create tom.com this area:

650) this.width=650; "Width=" 644 "height=" 364 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/01/wkiol1uzcvdzqyusaacqmf_5qco750.jpg "border=" 0 "/>

Save the file, and then create the Tom.com.dns file in the C:\Windows\System32\dns directory:

650) this.width=650; "Width=" 644 "height=" 454 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/01/wkiol1uzcvhqk2o9aagzta9r71m909.jpg "border=" 0 "/>

right mouse button Wyz.com.dns This file select open from Notepad:

650) this.width=650; "Width=" 644 "height=" 364 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/07/wkiom1uzcbbbevciaab9uegzgn0131.jpg "border=" 0 "/>

Let's start by creating SOA Records and NS records for the Tom.com region, as well as adhesion A records, and so on:

650) this.width=650; "Width=" 644 "height=" 364 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/01/wkiol1uzcvgz8_epaack36divjs452.jpg "border=" 0 "/>

Here we are delegating to Server02:

650) this.width=650; "Width=" 644 "height=" 364 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/01/wkiol1uzcvgxye9zaac7wehjv2a503.jpg "border=" 0 "/>

Open the DNS Manager for Server01 and restart:

650) this.width=650; "Width=" 644 "height=" "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/01/wkiol1uzcvkc_4uxaafob6fsl6m149.jpg "border=" 0 "/>

Here we are on the Server01 side of the DNS configuration is basically complete.

2. Create the sh.tom.com area on the Server02:

Right-Server02 The DNS server, click Properties:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/01/wkiol1uzcvkavavjaaezdxbnuii101.jpg "border=" 0 "/>

Click Advanced:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/01/wkiol1uzcvadyhygaafyhe8n4yu699.jpg "border=" 0 "/>

Click Load Zone Data at startup, select from File:

650) this.width=650; "Width=" 395 "height=" 484 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/01/wkiol1uzcvaxoorzaafmbubbqx0847.jpg "border=" 0 "/>

Click Apply, then click OK.

Open: C:\Windows\System32\dns:

650) this.width=650; "Width=" 644 "height=" 454 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/01/wkiol1uzcvetqsqsaafesveh0_w434.jpg "border=" 0 "/>

Double-click Open Boot, and then create a new sh.tom.com zone:

650) this.width=650; "Width=" 644 "height=" 437 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/07/wkiom1uzcbyxhkk_aad0nab1oy4327.jpg "border=" 0 "/>

Save the boot file, and then create a new sh.tom.com file under the DNS root directory:

650) this.width=650; "Width=" 644 "height=" 454 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/07/wkiom1uzcbzhe31raafzlz_ob1i072.jpg "border=" 0 "/>

Double-click Open sh.tom.com and then create new SOA, NS, and other records:

650) this.width=650; "Width=" 644 "height=" 380 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m02/5c/07/wkiom1uzcb2ayl3laac7a67yvxs616.jpg "border=" 0 "/>

Save the file, and then open DNS Manager:


650) this.width=650; "Width=" 644 "height=" "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m00/5c/01/wkiol1uzcvjbk5phaae-ua3xors405.jpg "border=" 0 "/>

Restart the DNS Manager for SERVER02:

650) this.width=650; "Width=" 644 "height=" 448 "title=" image "style=" Margin-right:auto;margin-left:auto; Border-top-width:0px;border-right-width:0px;border-bottom-width:0px;float:none; "alt=" image "src=" http:// S3.51cto.com/wyfs02/m01/5c/01/wkiol1uzcvjjd4fhaafyhnmlrgo500.jpg "border=" 0 "/>

3. Test whether the DNS delegation was successful:

Turn on the client Clent,dns point to Server01, and then use the ping command to test the www.sh.tom.com:

650) this.width=650; "height=" 423 "title=" image "style=" Border:0px;margin-right:auto;margin-left:auto;float:none; " alt= "image" Src= "http://s3.51cto.com/wyfs02/M01/5C/07/wKiom1UZCb7hWjw7AAHDWKJVlfA953.jpg" border= "0"/>

ok! through the above window can see the successful ping www.sh.tom.com, which proves that our experiment was successful.

This article is from the "Technology Meng Meng" blog, please be sure to keep this source http://wuyvzhang.blog.51cto.com/9992636/1626474

Implementing DNS delegation by modifying files

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.