We have an application which connects to the different applications using hostname. If I change the DNS server of the system on which the application is running, the application starts to fail with "java.net.UnknownHostException". But from the system I can send ping requests to different applications using FQDN. To take effect of DNS server change, we have to restart the application.
Is there any way in Java where we can refresh the DNS server details at runtime ?