Let the DNS server support pan domain name resolution

Source: Internet
Author: User
Tags net command net domain

Many enterprises have set up a number of Web sites to meet the needs of employees, in order to save money, these sites usually use the virtual host technology, that is, on the same server to set up multiple sites, employees use level two domain names to access these sites. However, the workload of maintaining these level two domain names is very high, but we can solve this problem by using a generic domain name resolution technique, so that support for the generic domain name can be achieved by slightly setting up a DNS server with its own Windows system. The following are examples of Windows Server 2003 and Windows 2000 DNS servers that describe how to transform them to enable universal domain name resolution. We assume that there is a domain rtj.net on the DNS server to enable the DNS server to support pan domain name resolution for this domain.

Windows 2000 enables universal domain name resolution

method to open the DNS console, right-click in the Rtj.net area, select New field in the pop-up menu, and then enter "*" in the New DNS Domain dialog box to create a level two area named "*", and then click OK. This zone is allowed to be established by the DNS server, and a record of an empty hostname is also required in the "*.rtj.net" area. Right-click the *. Rtj.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 that the pan domain name resolution points to in the IP address field, for example, enter" 192.168.0.1 ", and then click the" Add Host "button, This enables the universal domain name resolution of the rtj.net domain.

Method Two We can also implement a generic domain name resolution by manually modifying the DNS data files. Directly modify the DNS data files in the DNS folder in the system directory and go to "C". Winntsystem32dns "directory, find the Rtj.net.dns file, open with Notepad, manually add a" *a 192.168.0.1 "record, where" A "indicates that the record is an address record," 192.168.0.1 "refers to the IP address that the generic domain name points to , save the file after completion, restart the DNS server, and load the DNS data file.

Windows Server 2003 enables universal domain name resolution

The DNS server for the system implements a universal domain name resolution that allows you to use the "*" character as the host name, as long as it is simple to create a host record named "*" in the "rtj.net" area. Right-click the Rtj.net area, select New Host in the pop-up menu, enter "*" in the Name field of the new Host dialog box, enter "192.168.0.1" in the IP Address field, and then click the Add Host button. After you complete the above settings, you can use the ping command on the client to test the success of any level two domain name resolution. For example, entering the Ping fymjxcs.rtj.net command at a command prompt and getting the response information shown in the illustration indicates a successful pan-domain name resolution.

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.