[Xu hui] [TechTarget]
1. DNS settings in WIN2K
TCP/IP communication between computers on the Internet is performed through IP addresses, and all computers on the Internet should have a unique IP address. However, IP addresses are identified by numbers, such as 202.101.6.2, with poor memory. Therefore, people use computer domain names that are easier to remember, such as www.sohu.com. The user first registers the domain name in the domain name system. The DNS server is used to resolve the domain name to the corresponding IP address, and then communicate through the IP address.
The following figure shows the process of accessing the site through WEB.:
You can also configure your own DNS server in the LAN. You can set a virtual domain name that is only used by the LAN. If DNS is not installed on win2000server, install it. Go to"Control Panel"→ Select"Add/delete programs"→ Select"Windows component wizard"→ Double-click"NETWORK SERVICE"→ Set"Domain Name System DNS"Tick → click"OK"→ The system will prompt you to insert the WIN2000 installation disk, and then you can use the DNS service.
The following describes how to set up a virtual domain name in the LAN. We will create a virtual domain name asp.com/"> www.swfzasp.com as an example:
EnterProgram→Management tools→DNS.
Select"Positive search area", Right-click, and select"New Region"Option
Then a"New region wizardAnd then clickNext step", In the"Region type"Dialog box, select"Standard main regions"Option, click"Next step", In the"Input region name"Dialog box, enter com, and click"Next step", In the"Region FileIn the dialog box, clickNext step", In the"Complete the new region wizardClickComplete", So that the COM domain is established.
Select the COM domain, right-click, and executeNew Domain"
A dialog box is displayed. Enter the new domain name and we enter"Swfzasp", Click"OK". Then select"Swfzasp"This field, right-click, and execute" New Host "in the shortcut menu ".
A"New Host"Dialog box, fill in the nameWwwIn the IP address, enter the server address of the web page to be resolved by the domain name.10.161.248.3",
Click "add host". The system will prompt you that you have successfully added the host. Click"Complete", So far, a DNS record for a virtual domain name on the LAN is established on the DNS server.
2. Create a WEB site in W2K
The following describes how to place a WEB site on the W2K server and bind the corresponding domain name.
First, you must have the IIS service on the W2K server. If not, install this function. Go to"Control Panel"→ Select"Add/delete programs"→ Select"Windows component wizard"→ Double-click"NETWORK SERVICE"→ Set"Internet Information Service"Tick → click"OK"→ The system will prompt you to insert the WIN2000 installation disk, and then you can use the IIS service.
EnterProgram→Management tools→Internet Service Manager,
Select the host name, which is studentserver. Right-click and select"New"→"WEB Site",
A"WEB site creation wizard"Dialog box, select"Next step", Enter"Swfz", This description is casually input, click"Next step", In the"IP address and port settingsIn the dialog box, enter the IP address of the web page. The default port number is 80. Click"Next step",
Then a dialog box appears asking you to enter the home directory of the site, that is, the path where the webpage is actually placed on this server,
Click"Browse"Button, select the directory where the web page is placed in the dialog box that appears, and then click"Next step", And then a"WEB site access permission"Dialog box,
Here, you only need to select the default two items,Read"Permission and"Run scripts"Permission (if you do not select"Run scripts"This permission, the webpage on this server can only be a static pure HTML webpage, rather than a script program such as ASP or CGI .)
Click"Next stepIn this way, the Virtual Site settings are initially completed.
The following describes how to modify the attributes of a virtual site:
Select"SWFZ"This site, right-click, and select"Attribute",
A"SWFZ attributes"Dialog box,
First, click"Advanced"Button, a"Advanced multi-site configuration"Dialog box,
Click"EditIn the displayed dialog box, enter www.swf zasp.com as the domain name,
Click"OK", Return to"SWFZ attributes"Dialog box, select"Document"Tag, with"Delete"Button to delete the original default homepage file name, with"Add"Button to add the default homepage of the webpage we want to set,