Dual-line Intelligent DNS Server Setup Guide

Source: Internet
Author: User

Intermediary transaction SEO diagnosis Taobao guest Cloud host technology Hall

Several basic concepts in DNS

Domain name space: A space consisting of the unique and friendly host names of all hosts on the Internet, DSN

The logical tree structure of a naming system at one level. Each machine can use its own domain namespace to create a private network that is not visible on the Internet.

DNS server: The computer on which the DNS service program runs, with a DNS database on the results of the DNS domain tree.

DNS client: Also known as a resolver, is a program that uses DNS lookup to query information from the server. The parser can communicate with a remote DNS server or with the local computer that is running the DNS server program.

Resource record: A set of information in a DNS database that can be used to come out of a client's query.

Zone: The server is a contiguous part of its authoritative DNS namespace. A server can be an authorization for one or more zones.

Zone file: A file containing a zone resource record that the server is authorized for. In most DNS implementations,

Implement a region with a text file.

Internet Domain Name space

The DNS domain Name system on the internet takes a tree-like hierarchy.

The top level is called the root domain, which is the responsibility of the InterNIC organization to divide the world's IP address range and assign the domain name structure on the Internet. The root domain DNS server is responsible for processing only the resolution requests of some top-level domain DNS servers.

The 2nd layer is called the top-level domain, and the two or three-letter name is used to indicate the type of the country (region) or the unit that uses the name, common com,org,gov,net, etc.

Layer 3rd is the level two domain below the top-level domain, and the level two domain is a variable name for the length registered to the person or unit for use on the Internet. These names are always based on the appropriate top-level domain, depending on the type of unit or the geographic location of the name used. edu.cn, for example, is the website of China's educational institutions.

Layer 4th is a child domain under level Two, which is a different name that can be created by the unit. These names derive from the registered level two domain name, including the name added to the DNS tree that expands the name in the unit, and divides it into a department or geographic location. such as winiis.com represents the top-level domain name. You can continue to partition the subdomain or hook up the host.

The 5th layer is the host or resource name, common WWW represents a Web server, FTP represents the FTP server, news represents a newsgroup server.

With such hierarchical structure partitioning, the meaning of servers on the Internet is clear.

DNS Domain Name resolution method

DNS Query methods

Recursive query: If the DNS server can not resolve the DNS Customer service required to query the corresponding IP address of the domain name, the DNS server on behalf of the DNS Customer service machine to query or contact other DNS servers, than fully resolve the name, and will answer back to the customer service machine.

Iterative query: In order to overcome the shortcomings of all domain name resolution tasks in recursive query, we can find a way for DNS clients to undertake certain DNS domain name resolution work.

Reverse Query method: Recursive query and iterative query are positive domain name resolution, that is, from the domain name lookup IP address.

The DNS domain name resolution process is described below with the client Web Access as the column, and the parsing method is the recursive query

How to build a Microsoft DNS

2. Installation of DNS service

We started with guanli.sjsgz.net to install the DNS Server service on this machine. To install DNS, follow these steps

(1) Select "start → settings → control Panel" to open "Add/Remove Programs".

(2) Click Add/Remove Windows Components to wait for the Windows Component Wizard to start.

(3) Click the Next button to eject the Windows Components list.

(4) Click Network Services, and then click the Details button.

(5) Click the check box next to DNS (domain Name System).

(6) Click the OK button to return to the Windows Components dialog box.

(7) Click Next to install the appropriate services, and then click the Finish and Close button to complete.

You do not need to restart your computer, click start → program → admin tool →dns.

3, create "winiis.com" area

(1) Right-click the "+" root directory in DNS to select New zone to enter the New Zone Wizard.

(2) When the wizard prompts you to select "zone Type", you should choose "Primary zone" here.

(3) The screen appears asking "Area name", enter "winiis.com" in the text box after the name, and then the wizard goes to the zone File Prompt window, and by default, the "Create new file, file name," is automatically selected and automatically fills in the following text box. Winiis.com.dns, click the Next button, and then click Finish to complete the zone creation, where you can see the winiis.com area in the china-rlmcocosn→ forward lookup zone on the left side of DNS manager, as shown in the figure.

Note: The purpose of creating a forward lookup zone is to translate the hostname into an IP address, and you can also create a reverse lookup zone to make it easy to translate the IP address into the appropriate hostname, creating a method that is similar to creating a forward lookup zone.

4, create the host

Below we'll show you how to create a host as an example of creating a Web server (www.sjsgz.net) host in Figure 2.

(1) Right-click on the "Winiis.net" area of the window, select "New Host", enter host name "www" in the Name column in the dialog box, and enter "192.168.1.213" in the IP Address field.

(2) Click the Add Host button to successfully create the host address record www. Winiis.com, you can return to DNS Manager by selecting finish in the new host window.

Configuring DNS Clients

The steps are as follows:

(1) Click start → control Panel → network connection → Local connection, right-click, select---Property on the shortcut menu.

(2) Open the General tab in the dialog box for local Area Connection properties. In the use the following items in this connection list box, select Internet Protocol (TCP/IP) and click the Properties button

(3) The General tab of the Internet Protocol (TCP/IP) Properties dialog box appears. Select the use the following DNS server address radio button, enter the IP address of the primary DNS server in the Preferred DNS server text box, and enter the IP address of the secondary DNS server in the Alternate DNS server text box.

(4) If you want to set up multiple DNS servers, click the Advanced button. As shown in Figure 8.6.3. Click the Add button to add more than one DNS server.

5. Test Configuration

Nslookup is the most common tool used for dynamic DNS queries. It can simulate both the standard client parser and the server. As a client parser, Nslookup can query information directly to the server, and as a server, Nslookup can implement zone transfers from the primary server to the secondary server.

The use of the nslookup command is:

Nslookup[option][host-to-find|server]

Can be used in the following two modes:

Non-interactive mode: Enter the complete command at the command line, such as Nslookup www.winiis.com.

Interactive mode: Just type "nslookup" and enter. No parameters are entered. In interactive mode, you can enter "Help or?" under the Prompt ">". For help information.

(Note: Before you install DNS server, you must configure your computer with a static IP address.) )

About Winmydns dual-line Intelligent DNS resolution system

Winmydns is a new type of DNS intelligent parsing software that fully supports Chinese parsing. The software in addition to the general basic DNS resolution function, but also can automatically identify the source of the browser, and the same domain name Intelligent DNS resolution to the dual-line machine netcom or telecom IP, so that customers visit your site nearby. At the same time, the system can also automatically check the server that is resolved to ensure that visitors can always access the normal server.

The system also keeps DNS configuration information in Access or MSSQL databases, and users develop specific DNS applications that can be easily completed by adding or subtracting the SOA and RR tables in the database. This system and squid and other Web caching software perfect combination, build belongs to the CDN accelerator.

How to build a Winmydns dual-line intelligent analytic system

Winmydns software main components and files:

WinMyDNSAdmin.exe is the management configuration program; WinMyDNS.exe is a service procedure; Winmydns.xml is a configuration file. Install service. bat, uninstall service. BAT, start service. bat, stop service. bat Batch Management script.

The DB directory is the database directory, the Winmydns.mdb is an Access database, and the Winmydns.bak is a MSSQL database backup, which can be used to restore the MSSQL. A web directory is a Web management system. The iptable directory is the default IP allocation table. Please update in time, the accuracy of the distribution table is directly related to the accuracy of the intelligent judgment of the customer source. Log is the journal directory.

How do I build a DNS server with Winmydns?

1, you must have a belong to your own domain name. For example: ABC.com. No domain name must first register a domain name.

2, in the International Domain Name Center register a DNS domain name, so that your DNS server in the global effective.

A, in the domain name registrar (such as new network, new network interconnection) of the Domain name Control Panel in a "registration of DNS under this domain" function.

B, click in to add two DNS, such as ns1.abc.com and NS2.ABC.COM,IP address to fill in your installation Winmydns server IP address. If there are no two machines or two fixed ip,ns2 can write an IP.

C, in the http://www.internic.com/whois.html page fill in your DNS domain name, such as ns1.abc.com, select "Nameserver", point submit See your registered DNS has not been in force.

3, the new registered domain name, in the DNS server box to fill in your own ns1.abc.com and ns2.abc.com, do not use the domain name registrars default. If it is a registered domain name, please modify the DNS server for the domain name ns1.abc.com and ns2.abc.com.

4, copy your downloaded Winmydns to the D:\ directory, double-click the install Service. BAT, Register NT service for Winmydns.

5, configure the Web management program. In the Winmydns directory, in the Web folder, open conn.asp and modify the database link parameters in the conn.asp. Mainly modifies the values of the Winmydnsdbtype,winmydnsdbuser,winmydnsbpass three database connection parameters. As shown in the figure:

' Winmydns database link parameters, please manually modify

'##############################################################################################

Winmydnsdbtype= "0" Data for type, 0:access,1:mssql database

Winmydnsaccessfile= ". /db/winmydns.mdb "' Access database filename

Winmydnsdbip = "localhost" ' Winiis_server database IP address

Winmydnsdbname= "Winmydns" ' Winiis_server database name

winmydnsdbuser= "sa" ' Winiis_server database username

winmydnsdbpass= "Linyang" ' Winiis_server database Password

Winmydnsurl= "url.winmydns.com" ' Winmydns URL forwarding server domain name

'##############################################################################################

3, in IIS Manager is to create a Web site or virtual directory to point to the web directory. Then access the Index.asp page, by default username: admin, password 123456

4, after logging in, you can perform DNS resolution management.

6, URL forwarding server settings (do not require URL forwarding function can not be set).

Find a server as a URL forwarding server. and the home directory of the default site for IIS (that is, the host header is empty) is directed to the URL directory, and the index.asp is set to the default home page.

Modify the database link parameters in the url/index.asp. Same as the previous step web/conn.asp.

Note correctly fill in Winmydnsurl parameters, such as: url.abc.com. And point a record of parsing a url.abc.com to the URL forwarding server.

Five, how to test winmydns work is normal?

1. Use the netstat command to see if DNS works on UDP 53 ports

Use the netstat command to check whether Port 53 is open: Start-> run->cmd.exe and then enter Netstat-an-p UDP as follows:

C:\Documents and Settings\administrator>netstat-an-p UDP

Active 50x15

Proto Local Address Foreign

UDP 0.0.0.0:445 *:*

UDP 0.0.0.0:1434 *:*

UDP 0.0.0.0:3456 *:*

UDP 127.0.0.1:1046 *:*

UDP 127.0.0.1:1047 *:*

UDP 127.0.0.1:1082 *:*

UDP 192.168.1.158:9 *:*

UDP 192.168.1.158:53 *:*

UDP 192.168.1.158:137 *:*

UDP 192.168.1.158:138 *:*

UDP 192.168.1.158:500 *:*

UDP 192.168.1.158:4500 *:*

UDP 192.168.1.158:6163 *:*

UDP 192.168.21.1:53 *:*

UDP 192.168.21.1:137 *:*

UDP 192.168.21.1:138 *:*

UDP 192.168.21.1:500 *:*

UDP 192.168.21.1:4500 *:*

UDP 192.168.21.1:30653 *:*

UDP 192.168.137.1:53 *:*

UDP 192.168.137.1:137 *:*

UDP 192.168.137.1:138 *:*

UDP 192.168.137.1:500 *:*

UDP 192.168.137.1:4500 *:*

UDP 192.168.137.1:64677 *:*

C:\Documents and Settings\administrator>

· If the Winmydns is working properly. will have a 53 feed in the corresponding IP. As noted above: UDP 192.168.1.158:53 *:*. If no 53 ports are open. Please start the Winmydns service in the WinMyDNSAdmin.exe.

2. Use the nslookup command to test DNS resolution for normal

First confirm that the DNS server for the domain name is your company's DNS servers. International domain name, please go to http://www.internic.com/whois.html query. Domestic domain name please to www.cnnic.cn query.

Use the nslookup command to check that your DNS server resolves properly: start-> run->cmd.exe and then enter Nslookup as follows:

C:\Documents and Settings\administrator>nslookup

Default Server:dns.fz.fj.cn

address:202.101.98.55

> Server 192.168.1.158

Default Server: [192.168.1.158]

address:192.168.1.158

> www.abc.com

Server: [192.168.1.158]

address:192.168.1.158

Name:www.abc.com

address:210.72.225.179

> Set TYPE=MX

> mail.abc.com

Server: [192.168.1.158]

address:192.168.1.158

DNS Request timed out.

Timeout was 2 seconds.

DNS Request timed out.

Timeout was 2 seconds.

Request to 192.168.1.158 timed-out>

· Use the server command Nslookup to point to your DNS server for a query.

Use command queries such as set TYPE=MX or set Type=a to indicate the DNS type of the query.

Direct input www.abc.com and other domain names query DNS resolution results. If a record will come out of the IP address. If MX records, will come out of the mailbox Exchange domain name.

Related Article

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.