How to Set DNS support for wildcard domain name resolution [Revised Version]
Source: Internet
Author: User
However, it takes a lot of effort to maintain these second-level domain names, but we can use wildcard domain name resolution technology to solve this problem, you only need to set up your own DNS server in Windows to support wildcard domain names.
The following describes how to transform the DNS servers of Windows Server 2003 and Windows 2000 to implement wildcard domain name resolution. Assume that the DNS server has a domain jb51.net, so that the DNS server must support wildcard domain name resolution for this domain.
Wildcard domain name resolution in Windows 2000
Method 1
Open the DNS console, right-click in the "jb51.net" area, and select "new domain" in the pop-up menu ", in the "New DNS domain" dialog box, enter "*" to create a second-level region named "*", and click "OK.
This region is allowed by the DNS server, and you also need to create a record with an empty Host name in the "* .jb51.net" region. Right-click "*. in the jb51.net area, select "New Host" in the pop-up menu. In the "new host" dialog box, do not enter any content in the "name" column, enter the IP address pointed to by wildcard domain name resolution in the "ip address" column. For example, enter "192.168.0.1" and click the "add host" button to resolve the wildcard domain name of jb51.net domain.
Method 2
You can also manually modify the DNS data file to implement wildcard domain name resolution. Directly modify the DNS data file in the DNS folder under the system directory, go to the "C \ winnt \ system32 \ DNS" directory, and find jb51.net. use NotePad to open the DNS file and manually add a "* A 192.168.0.1" record. "A" indicates that the record is an address record, and "192.168.0.1" indicates the IP address pointed to by the wildcard domain name, save the file, restart the DNS server, and load the DNS data file.
Wildcard domain name resolution for Windows Server 2003
In Windows Server 2003, the DNS server implements wildcard domain name resolution, which allows the "*" character to be used as the host name, you only need to create a host record named "*" in the "jb51.net" area. The process is very simple. Right-click the "jb51.net" area and choose "New Host" from the shortcut menu. In the "name" column of the "New Host" dialog box, enter "*". enter "192.168.0.1" in the "ip address" column, and click "add host.
After completing the above settings, you can use the ping command on the client to test whether any second-level domain name resolution is successful. For example, enter the "Ping fymjxcs.jb51.net" command at the command prompt to obtain the response, which indicates that the wildcard domain name is successfully resolved.
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