Winmydns DNS server to erect _dns server

Source: Internet
Author: User
Tags mssql nslookup nslookup command url forwarding
First, you must have a domain name that belongs to you. For example: ABC.com. No domain name must first register a domain name.
Second, register a DNS domain name in the International Domain name Center to make your DNS server globally effective.
1, in the domain name registrars (such as new network, new network interconnection) of the Domain name Control Panel in a "registration of the DNS under the domain name" function.
2, 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.
3, 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. (usually 48 hours in effect)
Third, 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 registrar default. If it is a registered domain name, please modify the DNS server for the domain name ns1.abc.com and ns2.abc.com.
Four, after the completion of the installation of Winmydns software, decompression to which disk is installed to which disk, try not to extract to C disk.
Installation use
1, run "Installation Services. Bat" Installation Winmydns service.
2, restore the database.
If you use an Access database to skip this step.
If you use the MSSQL database, please restore the "Db/winmydns.bak" MSSQL database backup files to MSSQL to create a Winmydns library.
3, run the WinMyDNSAdmin.exe program, select the "Database Settings" page, set the database type.
Using an Access database, fill in the Access database file: Db/winmydns.mdb;
If you use the MSSQL database, configure the link parameters for MSSQL.
Start the Winmydns service.
4, configure the Web management program.
Modify the database link parameters in the conn.asp.
' Winmydns database link parameters, please manually modify here
'#################################################################################
Winmydnsdbtype= "0" Data for type, 0:access,1:mssql database
Winmydnsaccessfile= ". /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's domain name
'##################################################################################

In IIS Manager is to create a Web site or virtual directory that points to a web directory. Then access the Index.asp page, by default username: admin, password 123456
After logging in, you can perform DNS resolution management.
5, URL forwarding server settings (do not require URL forwarding function can not be set without).
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.
After the installation of the test to see Winmydns is not normal work, the following tests:
1. Use the netstat command to see if DNS is working 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 connections
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. such as the record above: UDP 192.168.1.158:53 *:*. If no 53 ports are open. Please start the Winmydns service in the WinMyDNSAdmin.exe.
2. Using the nslookup command to test DNS resolution is 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.

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.