Helping people with computers... one answer at a time.
Read the article that everyone's commenting on.
Good trick. I supose it will work well if you have a your own server with a static IP address, but probably will be dificult if your domain is hosted in a shared machine. Any idea for this?
Definetly works for static IPs. Don't understand how a machine being shared or not (in any of several definiteions of 'sharing') makes a difference though.
also useful for looking up the current ip of your domain is this online lookup tool: http://www.dnswatch.info
Remember, the hosts file overrides DNS, so if the real IP address for example.com changes again sometime in the future, this machine will continue to believe it's at whatever IP address is listed in hosts.
This is not true, all over the microsoft website it is said that the DNS is read FIRST and the HOSTS file read SECOND. This is a problem for me because I am trying to give a different IP for a hostname and I am unable to because the hostname is first resolved via DNS so Windows does not bother checking HOSTS.
Excellent article. I'm glad that I found it. Two thumbs up!
Is there a way to forward the index page to the test site using an html tag?
hi i will to know how i can block a website..its meebo.com.
I can't seem to redirect an IP to an IP in the hosts file. I have a desktop application which references an IP that is no longer valid and I don't have the source code. I want to fake the PC into thinking that the old IP is referring to the new IP.
Say my old IP is 22.214.171.124 and my new IP is 126.96.36.199, I want the host file to say something like this:
This doesn't work though, any ideas?
-----BEGIN PGP SIGNED MESSAGE-----
What you're trying to do isn't possible. An IP address can't
be mapped to another IP address in that way. The hosts file
is all about mapping *names* to addresses.
I don't know of a solution for your application, short of
trying to patch the binary.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
-----END PGP SIGNATURE-----
Hi, I would like to know how to do the remotely from hometo office with dynamic IP address. Using RealVNC free edition.
To post a comment on "Can I fake the DNS ip lookup to test my website?", please return
to that article's main page.
Question? Ask Leo!
The Tip Jar: Buy Leo a Latte!
By Date |
Business Card |
Advertisements do not imply my endorsement of any product or service.
Copyright © 2003-2013 Puget Sound Software, LLC and Leo A. Notenboom
Ask Leo! is a registered trademark ® of Puget Sound Software, LLC
Terms, Conditions & Privacy
Product Reviews, Recommendations and Affiliate Links Disclosure