asp.net hosting
 
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search

Support Center » Knowledgebase » How do I edit my ''hosts'' file to preview a domain name?

 How do I edit my ''hosts'' file to preview a domain name?
Solution You will need the domain name (eg: example.com, test.example.com) and the IP address of the target server. Make sure you close all open browser windows before doing this.

Common locations of the 'hosts' file:

Windows 95/98/Me: c:\windows\hosts
Windows NT/2000: c:\winnt\system32\drivers\etc\hosts
Windows XP (Home OR Pro): c:\windows\system32\drivers\etc\hosts
(you may need administrator access for Windows NT/2000/XP)

NOTE: 'hosts' is the name of the file and not another directory name.
It does not have an extension (eg: .exe, .txt, .doc, etc.)

1) Copy the location to your 'hosts' file from the respective Operating System above (copy only the bold area)
2) Open Windows Notepad (Start -> All Programs -> Accessories -> Notepad)
3) Click on the File menu and choose Open...
4) Paste that location into the File name: field and click the Open button
5) Start on a new line at the bottom of the file
6) T
ype the IP address, hit the TAB key, then type the domain*
7) Save the file and close all open browsers before attempting to browse to the domain.

Remember, this is only a temporary fix, so once your registrar has the updated information and DNS is fully propagated, you will need to remove any lines you added to the 'hosts' file.

NOTE: this ONLY works on the computer where you changed the 'hosts' file.

*You can add more than one hostname on the same line, just make sure you have at least one space or TAB in between each one.
Example line: 192.168.0.10 example.com test.example.com www.example.com



Article Details
Article ID: 217
Created On: Feb 08 2007 11:41 AM

 This answer was helpful  This answer was not helpful

 
 Article Options
 
Home | Register | Submit a Ticket | Knowledgebase | News | Downloads
FrontPageSQL2005Windows 2003SmarterMailSmarterStatsASP.netPlesk hostingHELM hosting
Products & Services  |  Company Information  |  Testimonials  |  Support  |  Resellers  |  Affiliates  |  Contact Us  |  Terms of Use  |  Site Map  |  Home
© 2007 Applied Innovations Corp., All Rights Reserved
ASP.net Hosting | Windows VPS Hosting | IIS7 Beta Hosting | Windows Hosting | BVCommerce Hosting | AspDotNetStorefront Hosting | Windows Reseller Hosting | Kentico CMS Hosting | SQL Server Hosting | ASP.NET AJAX Hosting | Windows Dedicated Server Hosting | Sharepoint Hosting | Expression Web Hosting | FrontPage Hosting | E-Commerce Hosting | DotNetNuke Hosting | Community Server Hosting | Search Engine Marketing | Online Merchant Accounts | Application Hosting | Free PCI Scanning | Cardinal Commerce | Discount Windows Hosting | Small Business Hosting | Enterprise Windows Hosting | Advanced Windows Hosting | Storefront Hosting | Free Website Building Software | Hosting Affiliate Program | News & Press Releases
More Info on Shared Hosting More Info on Application Hosting More Info on E-Commerce More Info on Dedicated Hosting More Info on Reseller Hosting More Info on Virtual Private Servers Windows 2003 Shared Hosting More Info on ASP.net Hosting More Info on Dedicated Servers Microsoft Gold Certified Partner Get it NOW! Sign-up  NOW!