How to Add a Virtual Domain to Hosting
When browsing the Web in a Windows 7 environment, domain names are resolved using the DNS settings of the operating system. The DNS database is a list of domain names mapped to IP addresses. If the server that stores the DNS database is not available for whatever reason, it is possible to create a virtual entry in the Windows 7 "hosts" file. The hosts file is a temporary replacement for the DNS server in the event of network problems.
Instructions
-
-
1
Log on to the Windows 7 computer using an account with administrative rights. Such an account is required for editing the hosts file.
-
2
Right-click the "Start" button and click "Open Windows Explorer."
-
-
3
Navigate to "\windows\system32\drivers\etc\" and double-click the hosts file. The file will open in the Notepad application.
-
4
Type an entry that follows this typical example:
192.168.1.1 www.domain.com
Where [www.domain.com] is the name of the domain, and [192.168.1.1] is the IP address.
-
5
Click "File" and then "Save." Restart your web browser to put the changes into effect.
-
1