Whether on a local area network or the Internet, people are also faced with another confusion: when computers communicate on the network, they can only recognize numerical addresses such as "221.130.187.119", so why when we open the browser, in the address bar After entering a domain name such as "www.downcodes.com", can we see the page we need?
In fact, the above two questions are just a process of "translating" IP addresses and domain names from each other. For the former, a domain name mapping record pointing to the corresponding IP address must be established; for the latter, this record has already been established and is in effect. The establishment of this "translation" record requires the use of the same computer called a "DNS server".
DNS servers are used in TCP/IP networks (such as general LAN or Internet, etc.). It is used to replace difficult-to-remember IP addresses (such as "221.130.187.119") with user-friendly names (such as "www.downcodes.com") Therefore, whenever you need to use a domain name such as "www.downcodes.com", you must first ensure that the corresponding IP address mapping has been made for this name in the DNS server. Work.
This article will take the DNS service that comes with Windows 2000 Advanced Server Edition (hereinafter referred to as Win2000) as an example to teach you step by step how to complete the establishment of this "translation system" in a local area network.
1. Add DNS service
By default, when you install Win2000, the DNS service is not added. Please open "Control Panel → Add/Remove Programs → Add/Remove Windows Components", then double-click "Network Services" in the component list, then check the "DNS Server" item under it, and finally press the "OK" button .
2. The goal of this article
1. Assume that this machine has an IP address of "192.168.0.51", and now you want to make it correspond to the three domain names of "webjx.com", "www.downcodes.com" and "ftp.webjx.com".
2. Assume that this machine also has IP addresses such as "192.168.0.90" and "192.168.0.91", and you also want them to correspond to the two domain names "www.163.com" and "webjx.163.net" respectively. .
3. Achievement of Goal 1
1. First make sure that the DNS service has been installed on this machine, then you can open the DNS console manager (hereinafter referred to as "DNS Manager") by selecting "Start→Programs→Management Tools→DNS".
2. Create the "webjx.com" area
(1) In DNS Manager, right-click on "SERVER" (this server name) and select "New Zone" to enter the New Zone Wizard.
(2) When the wizard prompts you to select the "area type", you should select "standard main area" here; and in the "forward or reverse search area" you should select "forward search area"; select each step Then click the "Next" button to continue.
(3) Then the system will ask for "Region Name", then enter "webjx.com" in the text box after "Name"; then the wizard will enter the "Region File" prompt window. By default, the system will automatically select "Create". For the new file, the file name is "", and the name "webjx.com.dns" (the "webjx.com" part is the "region name" entered in the previous step) is automatically filled in the subsequent text box.
(4) After selecting the default items according to the system prompts, the establishment of this area can be completed. At this time, you can see the "webjx.com" area in "SERVER→Forward Search Area" in the "Tree" column on the left side of the DNS manager.
3. Then right-click on the "webjx.com" area, select "New Host", enter the host name "www" in the "Name" field in the subsequent dialog box, and enter the IP address "192.168" in the "IP Address" field. .0.51", and then click the "Add Host" button to successfully create the host address record "www.downcodes.com". Select "Finish" in the "New Host" window to return to the DNS Manager.