Use wildcard domain name resolution to implement the second-level domain name of the site!

Source: Internet
Author: User
Tags to domain

1. Add "for example *. nytoo. com" to the DNS list of the domain name"

Host Name refresh in type direction
* .Nytoo.com 3600 in A-202.104.237.168

II. Implementation of the forward domain name resolution service.

Windows2003DNS is installed by default. Select Start>Program"-" Administrative Tools "-" DNS.

Generally, we create forward and reverse lookup regions respectively, because DNS not only resolves domain names to IP addresses (forward lookup), but also includes IP addresses to domain names (reverse lookup ).

1. Create the main region name "nytoo.com.
Right-click the local server name, select "new region", open the wizard window, and click Next. In the "region type" window, select "Main region "; then, select "positive search area" and click Next to enter the "Area Name" window shown in 1. In this step, enter the name of the area to be parsed, that is, the area after www.

Next, you will be prompted to create a region file. We will click Next based on the default file name. In the "Dynamic Update" window, considering the security of this DNS service, generally, press the default "do not allow dynamic updates". Of course, if you have installed hardware firewalls and other security measures on the server, you can select "allow dynamic updates". Click Finish.

2.New Host.

In the left-side Navigation Pane, right-click the Area Name "*" and select"New Host"; As shown in"New Host"Enter WWW in the name column of the window and change the IP address to the Web server address 202.104.237.168 In the example at the beginning of this article. Click" add host "and return to the management interface. You can see that the host address record" http://www.nytoo.com /".

400) {This. resized = true; this. width = 400; this. Alt = 'click here to open new window';} "border = 0>

Open the "C: \ windows \ system32 \ drivers \ etc \ hosts" file in notepad, add the 127.0.0.1 www.firstserver.com record, and save it.

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.