proxy - Prevent Java DNS resolution -
question: how can force java not resolve hostnames ip addresses.
in application, using socks proxy make connections external sites. our socks proxy server configured in such way can accept url's "www.google.com" , not resolved ip addresses "xxx.xxx.xx.xx".
this socks proxy connections done within api on code don't have control. wrote proxyselector , made sure whenever urls being called, going through our proxy server. logic seems work in our lower environments . in production boxes, somehow urls being sent socks proxy resolved ip's rather urls.
my question, how can force java not resolve hostnames go through socks proxy.
thanks.
regards, hariharan
Comments
Post a Comment