This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes General Computing and the fly likes proxy server takes priority over hosts file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "proxy server takes priority over hosts file?" Watch "proxy server takes priority over hosts file?" New topic
Author

proxy server takes priority over hosts file?

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
This is on behalf of my friend who doesn't have access of JR:


remember the hosts file? found in C:\Windows\system32\drivers\etc\hosts???

this is the file to make the dns entries...what i want to know is whether the proxy can override this or is it the other way round?

What i means is, if you make an entry in this file as "hotmail x.x.x.x" where x.x.x.x is IP address of yahoo, then will it go to yahoo when i type hotmail.com in browser?


I made an entry in hosts file something like this:

yahoo.com 127.10.10.10 (or any random IP address)�

But when I type yahoo.com in browser I see yahoo�s page loading in my browser... I think that means proxy server overrides this random IP with the actual IP.

So can we say that proxy server takes priority over hosts file?

Thanks.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

wrong way around
127.10.10.10 mysite.com
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
Originally posted by David O'Meara:
wrong way around
127.10.10.10 mysite.com


Oh yes. But this too doesn't override proxy server's... it still opens "yahoo"...

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: proxy server takes priority over hosts file?