Save 10% off all website scripts! - Enter code SNOWBALL at checkout!
Free Web Site Evaluations
Home » Scriptalicious Blog » Webmaster » Test DNS Transfer with Windows Hosts File

Scriptalicious Blog

Test DNS Transfer with Windows Hosts File

Posted 2010-01-01 in Webmaster

Scriptalicious Blog

Here's a simple trick you can use to test DNS changes on a Windows PC. You can fake or override DNS lookups by manually entering an IP address for any domain name you want. Use it to see if yoursite.com looks OK on the new server or IP address before DNS makes it around to you.

If you're on a Windows machine, you can try this by adding an entry to the `hosts` file (C:WINDOWS\system32\drivers\etc\hosts by default) on it's own line:

1.2.3.4     www.yoursite.com

That's it – now reload your browser and visit www.yoursite.com. It will ignore DNS and resolve as 1.2.3.4 (or whatever you typed in).

Have a happy new year everyone!





 


Search



Subscribe


Subscribe via RSS

Stay current with Scriptalicious news and subscribe in your favorite RSS reader.

Subscribe by RSS

Subscribe via Email

Get the latest Scriptalicious news delivered to your inbox.




77 powerful SEO scripts for under $100.

Real-time Backlink Rank Checker script.


Scriptalicious is in no way affiliated with myspace.com® or Google®. Google, PageRank™ and MySpace are the trademarks of their owners.