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 One
Open the DNS console, right-click in the Rtj.net area, select New Domain in the pop-up menu, and then enter "*" in the New DNS Domain dialog box to create a level two area called "*", 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, go to the "C\winnt\system32\dns" directory, locate the Rtj.net.dns file, use Notepad to open, manually add a "*a 192.168.0.1" record, where "a" Indicates that the record is an address record, and "192.168.0.1" refers to the IP address that the generic domain name points to, saves the file after completion, restarts the DNS server, and loads the DNS data file.
Windows Server 2003 enables universal domain name resolution
The DNS server for a Windows Server 2003 system implements a generic domain name resolution that allows you to use the "*" character as the host name, as long as you create a host record named "*" in the "rtj.net" area, the process is simple. 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.