hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Speirs <bill.spe...@gmail.com>
Subject Re: HTTPClient SOCKS proxy setup, DNS name is not resolved - UnknownHostException
Date Tue, 13 Dec 2011 20:42:19 GMT
It's hard to read the output from tcp dump (I'm used to Wireshark),
maybe try filtering on DNS only. However, I think these are the
relevant lines:


> 23:14:55.628927 IP 192.168.123.6.45281 > 192.168.123.2.domain:  37893+
> AAAA? somesharepoint.mydomain.com. (42)
> 23:14:55.630762 IP 192.168.123.6.48603 > 192.168.123.2.domain:  37893+
> AAAA? somesharepoint.mydomain.com. (42)
> 23:14:55.632586 IP 192.168.123.6.41552 > 192.168.123.2.domain:  12773+
> AAAA? somesharepoint.mydomain.com.localdomain. (54)
> 23:14:55.633765 IP 192.168.123.6.39861 > 192.168.123.2.domain:  12773+
> AAAA? somesharepoint.mydomain.com.localdomain. (54)
> 23:14:55.634506 IP 192.168.123.6.37562 > 192.168.123.2.domain:  49880+ A?
> somesharepoint.mydomain.com. (42)
> 23:14:55.635284 IP 192.168.123.6.35046 > 192.168.123.2.domain:  49880+ A?
> somesharepoint.mydomain.com. (42)
> 23:14:55.636427 IP 192.168.123.6.35224 > 192.168.123.2.domain:  62804+ A?
> somesharepoint.mydomain.com.localdomain. (54)
> 23:14:56.479205 IP 10.10.10.1.50011 > 192.168.123.6.50009: UDP, length 327
> 23:14:56.479207 IP 10.10.10.1.50011 > 192.168.123.6.50009: UDP, length 327
> 23:14:56.479208 IP 10.10.10.1.50011 > 192.168.123.6.50009: UDP, length 327
> 23:14:56.481185 IP 192.168.123.6.50009 > 10.10.10.1.50011: UDP, length 8
> 23:14:56.482038 IP 192.168.123.6.50009 > 10.10.10.1.50011: UDP, length 8
> 23:14:56.482670 IP 192.168.123.6.50009 > 10.10.10.1.50011: UDP, length 8
> 23:14:57.553734 IP 192.168.123.6.50009 > 10.10.10.1.50011: UDP, length 71
> 23:14:57.554775 IP 10.10.10.1.50011 > 192.168.123.6.50009: UDP, length 39
> 23:15:00.634432 IP 192.168.123.6.35224 > 192.168.123.2.domain:  62804+ A?
> somesharepoint.mydomain.com.localdomain. (54)

Without knowing what exactly is in these packets, I'm not sure if DNS
is succeeding or not.

Stupid question, can the SOCKS proxy resolve somesharepoint.mydomain.com ?

On the surface this doesn't really seem like an HttpClient issue...
just DNS. The line of code where the exception is thrown is simply:
return InetAddress.getAllByName(host);

I'd keep digging with something like Wireshark and filter to only the
packets you care about. My guess is that DNS simply failing, why I'm
not sure.

Sorry...

Bill-

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message