DNS (i)

Source: Internet
Author: User

DNS Server
DNS Overview
When a DNS client wants to communicate with a host, for example to connect www.baidu.com, the client queries the DNS server for the IP address of the host, and when DNS receives the request, the DNS server assists the client in querying the www.baidu.com IP address. Within the DNS system, one end of the request is called the client, and the party responsible for answering the request is called the server. When a DNS client requests a request to the DNS server to query the IP address, the DNS server will first look up from its own database, and if no other DNS server is requested, let's look at how the DNS server resolves the DNS client when it makes a request. Let's take a picture as an example.
DNS Domain name space
The entire DNS schema is a hierarchical tree structure called the DNS domain namespace:

650) this.width=650; "Title="]g{kbpt8y0j2 (5D[2O) xa{u.png "src=" http://s3.51cto.com/wyfs02/M00/5B/6E/ Wkiol1ujlppxw2jkaafdc5zi4ji992.jpg "alt=" Wkiol1ujlppxw2jkaafdc5zi4ji992.jpg "/>


At the top of the tree structure is the root of the DNS, usually represented by a point or a period. There are a number of servers under this root domain, which are top-level domains that are managed by different organizations. There are many DNS servers under each of the top-level domains, and the top-level domains are responsible for organizing classifications.

DNS Server

A partial zone record of the domain name space is stored in the DNS server. A DNS server can store records for one or more zones, which means that a DNS server can manage a zone or multiple zones, which we call the authoritative server for these zones. The authorization server is responsible for providing DNS clients with the content they are looking for.

Primary server (primary server): When you create a new zone on a DNS server, you can add, remove, or modify the zone directly, which is referred to as the primary server for this zone.

secondary server (secondary server): When you create a new zone on a single server, the records for this zone are copied from the other server, which means that the area it stores is a replica record that cannot be modified. At this point, this DNS server is called a secondary server for this zone.

Query mode for DNS

When the DNS client queries the DNS server for an IP address, or when the DNS server queries the DNS server for an IP address, it has two query modes:

recursive query :

When a DNS client makes a request, if there is no record within the DNS server, the DNS server queries the other server instead of the client. Requests initiated by DNS clients belong to a recursive query

iterative Query :

Most queries between the DNS server and the DNS server belong to an iterative query. When the first DNS server makes a query request to the second server, if there is no record in the second server, it will provide the IP address of the third server to the first server, and the first server makes the query to the third server by itself, so that the query pattern belongs to the iterative query.

Installation of DNS servers

Before you install a DNS server on a Windows Server R2 computer, it is recommended that the IP address of this computer be static, that is, by hand, including the IP address, subnet mask, default gateway, etc., and do not get through DHCP. This will cause the DNS client to be troubled on the specified DNS server IP address, because the IP address will be different each time it gets.

Installation of DNS servers

Make some basic changes first

1. Modify Host Name

650) this.width=650; "Width=" 1022 "height=" 481 "title=" c_f$5f%y2dnyrx~r@a[p1ke.png "style=" width:709px;height:309px ; "Src=" Http://s3.51cto.com/wyfs02/M01/5B/6F/wKioL1UJM5-TKscWAAH-lZv91PQ171.jpg "alt=" Wkiol1ujm5-tkscwaah-lzv91pq171.jpg "/>

Click Local server

650) this.width=650; "Width=" 1026 "height=" 459 "title=" _i45r_m_z_rs0w_z~r1}xnf.png "style=" width:701px;height:381px ; "Src=" Http://s3.51cto.com/wyfs02/M01/5B/75/wKiom1UJNCKx6yvRAAIw85Q5di4091.jpg "alt=" Wkiom1ujnckx6yvraaiw85q5di4091.jpg "/>

Click computer name > Change > Name of computer (preferably English) > OK

2. Configure the Network

Use the Windows+r key to bring up the running dialog and hit command line in the run Ncpa.cpl

650) this.width=650; "Width=" 809 "height=" 314 "title=" xi0u0$6[q_c]{}%bni~0]bd.png "style=" WIDTH:665PX;HEIGHT:276PX; " Src= "Http://s3.51cto.com/wyfs02/M01/5B/76/wKiom1UJNariO7mMAAD-Hwu0Wt4683.jpg" alt= " Wkiom1ujnario7mmaad-hwu0wt4683.jpg "/>

Click the Network Right button property

650) this.width=650; "Title=" X0llaf}l (ihh2k{jgpl~3t3.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/ 5b/70/wkiol1ujn-ybqv5yaahmbaye_ba494.jpg "alt=" Wkiol1ujn-ybqv5yaahmbaye_ba494.jpg "/>

Tick off IPv6, click IPv4 Properties

650) this.width=650; "title=" 5zbuu%hqp7_juddilyn7klu.png "style=" Float:none "src=" http://s3.51cto.com/wyfs02/M00/ 5b/76/wkiom1ujnsoqpgmpaahpnnstf9o717.jpg "alt=" Wkiom1ujnsoqpgmpaahpnnstf9o717.jpg "/>

Are you sure

3. Turn off the firewall

Wf.msc in the running.

650) this.width=650; "Title=" Bsbo (h~2nw{uq{(k_ ' yo9x1.png "src=" http://s3.51cto.com/wyfs02/M02/5B/70/ Wkiol1ujokujbtdpaamgb_dxud0836.jpg "alt=" Wkiol1ujokujbtdpaamgb_dxud0836.jpg "/>

Click Advanced Security > Right key properties on the local computer in the domain configuration file, the state of the firewall changes to shut down > Private profile and the common configuration file, as well, and finally OK.

Turn on Remote Desktop

650) this.width=650; "Title=" WP6N{0VFC] (m[1l0@ni$ktg.png "src=" http://s3.51cto.com/wyfs02/M01/5B/70/ Wkiol1ujoajxix6_aafmiynmxq8726.jpg "alt=" Wkiol1ujoajxix6_aafmiynmxq8726.jpg "/>

650) this.width=650; "Width=" 1022 "height=" 481 "title=" c_f$5f%y2dnyrx~r@a[p1ke.png "style=" width:709px;height:309px ; "Src=" Http://s3.51cto.com/wyfs02/M01/5B/6F/wKioL1UJM5-TKscWAAH-lZv91PQ171.jpg "alt=" Wkiol1ujm5-tkscwaah-lzv91pq171.jpg "/>

On the Configure this local server, click Add Roles and services on Windows Server 2008, where roles and features are separate, and there is no impact on installing the DNSA server.

650) this.width=650; "Title=" p1_1zm2@$7q{3shv58 (hqdq.jpg "src=" http://s3.51cto.com/wyfs02/M02/5B/76/ Wkiom1ujoqaqjxfpaakbzitsepe651.jpg "alt=" Wkiom1ujoqaqjxfpaakbzitsepe651.jpg "/>

Before you start the next step, select the DNS server here, continue to the next step, and then install it.

Zone type for DNS

You can create three types of zones within the DNS server:

Primary zone: It is the primary replica used to store the contents of this area, content added within this area can be deleted and modified, etc.

Secondary zone: The content in the secondary area originates from the primary area, which is read-only and cannot be modified.

Stub zones: zone replication in stubs with primary zones, but only Ns,soa and sticky A records can be replicated.

Type of record:

A: Host Record

SOA: Start authorization record

NS: Name server record

CNAME: Alias Record

MX: Right-click Exchanger record

PTR: Reverse pointer

Create a primary zone

650) this.width=650; "Width=" 767 "height=" 455 "title="]5t%$18fa (Ez_ (2%cm8y1wb.png "style=" WIDTH:621PX;HEIGHT:387PX; Float:none, "src=" Http://s3.51cto.com/wyfs02/M02/5B/77/wKiom1UJO9bA1LVWAADnpZgZ6HI730.jpg "alt=" Wkiom1ujo9ba1lvwaadnpzgz6hi730.jpg "/>

First locate the DNS server, open WIN-RSM3P6IEGVV,

Click on the primary lookup area to create a new primary zone

650) this.width=650; "Title=" V$9cak (ey%4{]cahl%d33$f.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/ 5b/71/wkiol1ujpqdzn7pjaahzj24zqna242.jpg "alt=" Wkiol1ujpqdzn7pjaahzj24zqna242.jpg "/>

650) this.width=650; "title=" V ' {9lw1kg2eq7unlzj{bm80.png "style=" Float:none; src= "http://s3.51cto.com/wyfs02/M01/ 5b/77/wkiom1ujo9eg6t-faafldbkdy6g691.jpg "alt=" Wkiom1ujo9eg6t-faafldbkdy6g691.jpg "/>

The main area is built.

New A record below

Click in a blank space, right-create a record

650) this.width=650; "Width=" 754 "height=" 509 "title=" Fjsl_6%3zefxt@wi~p3b9sx.png "style=" WIDTH:707PX;HEIGHT:478PX; Float:none, "src=" Http://s3.51cto.com/wyfs02/M02/5B/71/wKioL1UJPfWAfouIAAGB-QPoHxM969.jpg "alt=" Wkiol1ujpfwafouiaagb-qpohxm969.jpg "/>

650) this.width=650; "Title=" R1t$2}1y$wom) (93x~hx0) 6.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/ 5b/77/wkiom1ujpmzbgrdaaad-yfgbowg319.jpg "alt=" Wkiom1ujpmzbgrdaaad-yfgbowg319.jpg "/>

Name is www

IP address please fill in the IP address of your virtual machine

650) this.width=650; "title=" 8y_jh) O (p}ccnteqj5brtvi.jpg "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/ 5b/77/wkiom1ujpmuym56zaaf82oybnqu529.jpg "alt=" Wkiom1ujpmuym56zaaf82oybnqu529.jpg "/>

A record is built, this is the simple application of the DNS server.

This article from the "DNS Mystery (a)" blog, reproduced please contact the author!

DNS (i)

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.