N
noone
JDK 1.3.1_09
Solaris 8
For some time now, every now and then, we would get an
UnknownHostException trying to connect to a 3rd party using their FQDN.
We retry the connetion ( HTTP, SMPP, etc. ) every 30 seconds and would
keep on getting UnknowHostException.
Whenever this happens, I would try to do an nslookup, and it would
return the 3rd party's IP address. These are fixed IP addresses.
I would then restart the JVM, and the problem will go away.
The only way I could explain this is that:
During a specific time when we tried to connect to the 3rd party, the
DNS server timed out, was unreachable, or returned an error.
Subsequent socket connections by the JVM to that same FQDN uses the
previous result instead of retrying the DNS query.
Anyone had this problem before ?
Solaris 8
For some time now, every now and then, we would get an
UnknownHostException trying to connect to a 3rd party using their FQDN.
We retry the connetion ( HTTP, SMPP, etc. ) every 30 seconds and would
keep on getting UnknowHostException.
Whenever this happens, I would try to do an nslookup, and it would
return the 3rd party's IP address. These are fixed IP addresses.
I would then restart the JVM, and the problem will go away.
The only way I could explain this is that:
During a specific time when we tried to connect to the 3rd party, the
DNS server timed out, was unreachable, or returned an error.
Subsequent socket connections by the JVM to that same FQDN uses the
previous result instead of retrying the DNS query.
Anyone had this problem before ?