This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: proxy server takes priority over hosts file?
 
Similar Threads
way to avoid adding site to hosts file?
same IP address in /etc/hosts
how to map www.test.com to http://localhost:8080/test/index.jsp on Tomcat server
WS Startup: NET_Bind (in depth, however).
java app using proxy server and local hosts file