Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

How to flush the DNS cache for Java on HP-UX 11.31?

Ken Englander
Regular Advisor

How to flush the DNS cache for Java on HP-UX 11.31?

Does anyone know how to flush the cached information about which DNS servers are available to Java.
4 REPLIES
Shibin_2
Honored Contributor

Re: How to flush the DNS cache for Java on HP-UX 11.31?

To flush dns, either you restart named daemon

/sbin/init.d/named stop

/sbin/init.d/named start

or send a kill signal

kill -HUP 'pid_of_named'
Regards
Shibin
Ken Englander
Regular Advisor

Re: How to flush the DNS cache for Java on HP-UX 11.31?

That must not be what is happening as there is no named configured.

Any other idea?
Steven Schweda
Honored Contributor

Re: How to flush the DNS cache for Java on HP-UX 11.31?

I know nothing, but I wouldn't expect Java to
have any Java-specific stuff related to DNS.

Is there some actual problem which you are
trying to solve?
Ken Englander
Regular Advisor

Re: How to flush the DNS cache for Java on HP-UX 11.31?

Actually, we were trying to test the behavior when one of the DNS servers is not available and it seemed to "remember" that and perform better the second time. So, we naturally thought the info was cached.

However, the second time we tried this it did not behave the same way. So, I think I will simply call this a fluke or a mistake on our part and close this thread.

Thank you both for your feedback!