benitomdq Posted June 28, 2006 Share Posted June 28, 2006 (edited) Hi!There is my problem:I have one website for example domain.com in one server. 10.10.10.10Have the same site in a new server, 10.10.10.15, so i need to work withthe new one, so i put on hosts file this:10.10.10.15 domain.comThen, if i ping domain.com it resolves to 10.10.10.15 but, internetexplorer ( firefox too ) resolves to the old one, 10.10.10.10.I try windows restart, adsl router reset, /dnsflush, etc.Any help ?ThanksCristian Edited June 28, 2006 by benitomdq Link to comment Share on other sites More sharing options...
HyperHacker Posted June 29, 2006 Share Posted June 29, 2006 I noticed the HOSTS file is overridden for certain addresses on microsoft.com. Link to comment Share on other sites More sharing options...
Mr Snrub Posted June 29, 2006 Share Posted June 29, 2006 Then, if i ping domain.com it resolves to 10.10.10.15 but, internet explorer ( firefox too ) resolves to the old one, 10.10.10.10.The fact that it resolves to the correct IP address at the command prompt would imply the DNS Client service is working correctly and the HOSTS file is read.The fact that only browsers resolve to the wrong address would imply you are using a proxy server for Internet access - or some ad-filtering/privacy/AV software which behaves as a transparent proxy - and this is doing a DNS lookup for the address so your local HOSTS file is ignored.If the browsers are not configured to use a proxy server, check for software on the machine which is transparently doing the check for outbound HTTP connections and is performing the name resolution. Link to comment Share on other sites More sharing options...
benitomdq Posted June 29, 2006 Author Share Posted June 29, 2006 its really weird, if i put on hosts 127.0.0.1 internet explorer shows me the error page, but when i put the 10.10.10.15 it shows me the page located on 10.10.10.10 server Link to comment Share on other sites More sharing options...
Synapse Posted June 30, 2006 Share Posted June 30, 2006 if you have a firewall make sure to clear it's DNS Cache as well. if you manually type in the 10.10.10.15 number does it connect?also try doing ipconfig /displaydns and see if that resolves to 10.10.10.15 as well..I noticed the HOSTS file is overridden for certain addresses on microsoft.com.yeap by the dnsapi.dll file... the following can't be changed in HOSTS without hexediting the dnsapi.dll. (which i have done)www.msdn.commsdn.comwww.msn.commsn.comgo.microsoft.commsdn.microsoft.comoffice.microsoft.commicrosoftupdate.microsoft.comwustats.microsoft.comsupport.microsoft.comwww.microsoft.commicrosoft.comupdate.microsoft.comdownload.microsoft.commicrosoftupdate.comwindowsupdate.comwindowsupdate.microsoft.comsorry for takin this thread a little off topic lol. Link to comment Share on other sites More sharing options...
Mr Snrub Posted June 30, 2006 Share Posted June 30, 2006 its really weird, if i put on hosts 127.0.0.1 internet explorer shows me the error page, but when i put the 10.10.10.15 it shows me the page located on 10.10.10.10 server My guess then is that the browser is going to the correct addresss but the page being returned has a reference which still resolves to the other server.e.g.domain.com is set in HOSTS to point to 10.10.10.15browser visits http://domain.com - this is resolved to 10.10.10.15 (via HOSTS) and the web server returns a client-side redirect to http://www.domain.combrowser then requests http://www.domain.com as instructed - this resolves to 10.10.10.10 (via DNS) and the old web server now returns the page requestedUse something like HTTP Fiddler to view the browser requests, or Ethereal to see the raw network traffic to verify this. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now