one by one binding method
In order to meet the special needs of the staff of the unit, many units have created a number of different Web sites, in order to save the site construction costs as much as possible, these Web sites generally use a multi-station technology, which is the virtual host technology we usually mentioned, this technology is a server with only one public IP address. A Web site that runs multiple independent domain names at the same time. Multiple different website domain names point to the same public IP address at the same time. So when we actually build a station, how can we let the DNS server achieve the purpose of centralized resolution of domain names? The following article will contribute two tricks, so that multiple different website domain names point to the same public IP address at the same time!
Binding one by one method
The so-called one-by-one binding method actually means that the domain names of different websites are manually parsed one by one to the same IP address. For the convenience of introduction, this article will use the common Windows 2003 server system as the operating blueprint, to introduce to you how to achieve centralized domain name resolution in Windows 2003 server. Assume that we have applied for an aaaa.com domain name to the ISP in advance. The first task we need to do first is to resolve the domain name to the public IP address of the server. Suppose the public IP address is 61.155. 52.180, let us take a look at the specific resolution steps of the domain name:
First click the "Start" /"Programs" /"Administrative Tools" /"DNS" command to open the local server system DNS console window, then right-click the host name of the local server, execute the "New Zone" command from the pop-up context menu, and then set the new zone name to "aaaa" in the pop-up New Zone Wizard window. Com" and click the "OK" button.
Secondly, we also need to create a "www" hostname record under the "aaaa.com" domain name. Right-click the name of the "aaaa.com" area that has been created in the front, and execute the "New Host" command from the pop-up context menu. In the "Name" box of the host creation dialog box that appears, enter " Www", enter "61.155.52.180" in the IP address box, and finally click the "Add Host" button, so the Web site with the domain name "www.aaaa.com" will be successfully parsed into the unit server. The public IP address "61.155.52.180" is on. After the parsing and setting operation is completed, the domain name of the website can generally take effect immediately. Therefore, we may use the Ping command to check whether the domain name set by itself can be pinged. If it has been pinged, the parsing operation has been successful.
Under normal circumstances, netizens like to use the "www" abbreviation "www.aaaa.com" to visit the target website, but also like to use the "aaaa.com" domain name without "www". Access, now we will also resolve the "aaaa.com" domain name to the public IP address of the server "61.155.52.180". In this parsing operation, we also need to right-click the "aaaa.com" domain name, execute the "New Host" command from the pop-up context menu, and the "name" of the host creation dialog box that appears after it. Do not enter anything in the box, enter "61.155.52.180" in the IP address box, and then click the "Add Host" button, so the Web site with the domain name "aaaa.com" will be successfully parsed to the unit. The public IP address "61.155.52.180" in the server is up. As a result, even if the domain name resolution operation is over, the domain names "www.aaaa.com" and "aaaa.com" can be successfully resolved to the unique public IP address of "61.155.52.180". Of course, if there are other website domain names such as bbbb.aaaa.com and cccc.aaaa.com that need to be parsed, we can bind them to the unique public IP address one by one according to the above operation.
Here, we can create two Web sites and set the domain names of these sites to "www.aaaa.com" and "bbbb.aaaa.com" respectively. The name of each site should be the same. The domain names are associated, so that the server can be easily identified and managed when multiple sites are saved in the future. When creating a Web site, we can click the "Start" /"Programs" /"Administrative Tools" /"Internet Information Services (IIS) Manager" command in the Windows 2003 server system desktop to open the IIS6 management window (as shown 1)), right-click the "Website" item in the left area of the window, and select the "New" /"Website" command from the pop-up context menu to open the Website Creation Wizard settings window.
Figure 1
Click on the "Next" button and the website description wizard interface pops up. Considering that you want to be consistent with the corresponding domain name, you can manage the website in the future, so in the "Description" Enter "www master" in the text box; continue to click the "Next" button to open the "IP Address and Port Settings" window as shown in Figure 2. Here we usually set the "IP Address" to the default "All" Unassigned, set the Port Number to the default of 80, and set the Host Header for this website to "www.aaaa.com".
Using the Pan-Domain Name Method
The next wizard window will automatically prompt us to choose the default website file storage location, we can click the "Browse" button to open the file selection dialog In the box, find the folder corresponding to the target Web site. After specifying the correct directory information of the target website, continue to click the "Next" button, and then select the "Read" permission in the access rights of the target website. If the target site is an ASP dynamic page, we also need to select the "here" Run the script" project, and finally click the "Next" button to end the creation of the "www.aaaa.com" site. Our "www.aaaa.com" site will also be published successfully, when we need to visit the site in the future. For the content, you can open the IE browser and enter "http://www.aaaa.com" in the address bar to access the web content of the "www.aaaa.com" site.
According to the same operation method, we can create a new site with the domain name "bbbb.aaaa.com" in the IIS6 management window, except that we must input in the "host header" of the interface of Figure 2. "bbbb.aaaa.com", the other parameters are basically the same. Of course, if we want to create a site with another domain name, we just need to rely on the scribble.
Figure 2
Using the Pan-Domain Name Method
When a unit has only a few Web site names to resolve, we can use the above binding method to The domain name of different sites is resolved to the unique public IP address in the server; however, once the number of domain names in the organization needs to be resolved, if we still use the one-by-one binding method to complete the domain name resolution task, then the workload of parsing these domain names It will be very huge. In fact, we can use the method of pan-domain name to solve the problem of centralized resolution of several domain names. Now we still use the common Windows 2003 server system as the operating blueprint, to introduce you to the general domain name resolution.
Assuming we have created an "aaaa.com" domain name in the server system, we now want to put "bbb.aaaa.com", "ccc.aaaa.com", "ddd.aaaa.com" When multiple secondary domain names are resolved to the unique public IP address "61.155.52.180" in the server at the same time, there is no need to add the host records in turn according to the above method, but only need to follow the following steps. Sexual settings are fine:
First click the "Start" /"Programs" /"Administrative Tools" /"DNS" command, open the DNS console window in the local server system, and then use the right mouse button Click the "aaaa.com" domain name on the local server and execute the "New Host" command from the pop-up context menu to open a host creation dialog.
Secondly enter "*" in the "Name" column of the dialog box, directly enter the server public network IP address "61.155.52.180" in the "IP address" field, and then click "Add host" " button.
After completing the above setting operation, we can open any workstation in the LAN and execute the Ping command in it to test "bbb.aaaa.com", "ccc.aaaa.com", The connectivity of multiple websites such as “ddd.aaaa.com”, we will be pleasantly surprised to find that all second-level domain names have been resolved to the same IP address at the same time, which indicates the pan-domain name resolution operation we performed above. is correct.
Next, we will enter the IIS6 management window according to the previous method, specify the home directory information of each secondary site, and set the "host header" information of each sub-site to its own domain name. Information, so that the domain name resolution and publishing tasks of multiple Web sites are all completed.
Tip: When multiple secondary domain names are resolved to the same public IP address, we can also quickly complete the method of modifying the system DNS file. The following is the specific operation of the method. Steps:
First click the "Start" /"Programs" /"Accessories" /"Windows Explorer" command to open the Explorer window of the server system; in this window, double-click the " Windows, "system32", "dns" folder, find the "aaaa.com.dns" file in the corresponding "dns" folder window.
Then open the "aaaa.com.dns" file with a text editor such as Notepad, and add a "* A 61.155.52.180" record in the last line of the text editing area, where "A "The newly added record is the address record. "61.155.52.180" is the public IP address pointed to by the generic domain name. After adding the above record, save the "aaaa.com.dns" file and restart the server. System, so all the second-level domain names of "aaaa.com" will be automatically resolved to the public network IP address "61.155.52.180".
Summary:
The domain name analysis provided above must have certain applicable conditions. Only under the right conditions can each of them be effective and fast; for example, one by one The law is limited to the case where the domain names of multiple sites are different, and the pan-domain name method can only be applied to the centralized resolution of several second-level domain names.
Now playing online games like to use voice communication, everyone is logged into a voice chat room,
For security reasons, it is not allowed to ping the external command on Windows Se
Introduction: The full name of PWS is Personal Web Server, which is
One Cancel Anonymous Access Function By default, the FTP server of Wi
What is the CDN and its type characteristics
Tomcat port number conflict needs to be changed How to modify Tomcat port number
HTTP Error 403.1 Forbidden Access Resolution
Selecting the top five considerations for cloud computing service providers
Memcache and memcached installation process
Detailed Windows 2000 system log and its deletion method
Solve the problem of AIX telnet service shutdown and slow response
Windows2003 Domain Rename Tool (1)
Windows server system log: system startup time is seconds | Eventlog 6013
Points to be aware of during the use of the U disk under the win7 system
Win10 WordPad saves documents in TXT format
Exploring IE browser abnormality causes the failure to solve
How Win8 creates shortcuts on the desktop
Win8 set taskbar icon to merge or hide effect
Audio compression package comes back to life
How to reinstall the Win10 system?
After upgrading Win10, C disk is anxious how to do? One move free hard disk space
What should I do if Win10's problem report settings are gray?
What can I do if Flash Player does not work properly under win8