Transform DNS server Windows pan-domain resolution settings

  
        

Many companies have set up multiple Web sites to meet the needs of their employees. In order to save money, these sites usually use virtual hosting technology, that is, multiple websites are set up on the same server, and employees use second-level domain names to access these sites. . However, the workload of maintaining these second-level domain names is very large. Many companies have set up multiple Web sites to meet the work needs of employees. In order to save costs, these sites usually adopt virtual host technology, that is, set up multiple servers on the same server. On the website, employees use a second-level domain name to access these sites. However, the workload of maintaining these second-level domain names is very large, but we can use the pan-domain name resolution technology to solve this problem, as long as the Dns server that comes with the Windows system can be set up to support the pan-domain name. The following is a Windows Server 2003, Windows 2000 DNS server as an example, how to transform them to achieve pan-domain name resolution. We assume that there is a domain rtj.net on the DNS server to enable the Dns server to support generic domain name resolution for this domain. Windows 2000 implements the pan-domain name resolution method. Open the DNS console, right-click on the “rtj.net” area, select “New Domain” in the pop-up menu, and then click “Create New DNS Domain” in the pop-up menu. Enter “*” in the box to create a secondary area called “*” and finally click the “OK” button. This area is allowed to be created by the Dns server, and then a record of an empty hostname is created in the “*.rtj.net” area. Right-click on the “*. rtj.net” area and select “New Host" from the pop-up menu. In the “New Host” dialog box, do not enter anything in the "Name” column,&ldquo In the IP address, enter the IP address pointed to by the generic domain name resolution, for example, enter “192.168.0.1”, and finally click the “Add Host” button to enable the pan to the rtj.net domain. DNS. Method 2 We can also implement the generic domain name resolution by manually modifying the DNS data file. Directly modify the DNS data file in the DNS folder under the system directory, enter the directory "C?\\Winnt\\System32\\dns", find the rtj.net.dns file, open it with Notepad, and 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 pointed to by the pan-domain name, save the file after completion, restart the Dns server, load the DNS data file can. Windows Server 2003 implements pan-domain name resolution. The Dns server of Windows Server 2003 system implements pan-domain name resolution. It is very simple. It allows the use of the “*” character as the host name. Just create a name in the “rtj.net” area as “ *” The host record is OK, the process is very simple. Right-click on the “rtj.net” area and select “New Host from the pop-up menu. In the “Name of the New Host” dialog box, enter “*”,“IP In the address & rdquo; enter “ 192.168.0.1 & rdquo;, and finally click the “ add host & rdquo; button. After the above settings are complete, you can use the ping command on the client to test whether any second-level domain name resolution is successful. For example, if you enter the “Ping fymjxcs.rtj.net” command at the command prompt to get the response message as shown in the figure, it means that the pan-domain name resolution is successful.

Copyright © Windows knowledge All Rights Reserved