From: David D.K. <ddk...@ki...> - 2005-02-09 05:56:09
|
Does "nslookup webcache" work? I'm always distrustful of hostnames that aren't fully qualified. It's usually a sign of a Windows network that is lacking proper DNS. As far as I know, Java is going to attempt to lookup the hostname using DNS, as opposed to WINS. The "nslookup" command will force Windows to resolve the hostname through DNS instead of WINS on your PC. Dave On Feb 8, 2005, at 1:48 PM, Gil Hauer wrote: > When I try and run a simple test program behind a corporate firewall I > get: > > java.net.UnknownHostException: http://webcache > at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177) > at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364) > at java.net.Socket.connect(Socket.java:505) > > 'webcache' is the proxy and I've set it in the code as: > final WebClient webClient = > new WebClient(BrowserVersion.MOZILLA_1_0, > "http://webcache", > 8080); > > Is there any reason why it would not be found? If I ping from the it > seems to be found ... > > Any help would be appreciated. > > Thanks, > Gil |