If name resolution is slow, then it can adversely affect server performance.
If the server is unable to resolve a host name to the corresponding address, then it might be unable to establish a connection to an external system. In some cases, it can also affect the ability to accept client connections or evaluate access control rules.
The server logs a message if attempts to resolve a host name to an IP address fail or take a long time to complete. This can help make it easier to diagnose problems related to name resolution, but it would be better to prevent those problems in the first place.
The JVM provides its own address caching facility that can help with this. It
maintains its own internal cache that maps host names to IP addresses, and each mapping
is associated with a Time To Live (TTL) value that indicates how long it should be used.
If the mapping between host names and IP addresses is stable in your environment, then
you might want to configure the JVM to use a large TTL value to reduce its dependency on
the underlying name service. From a security perspective, this is primarily useful for
cases in which you cannot rely on a secure name service or host file, but it can also
help mitigate the possibility of problems that could arise in the event of a name
service outage. You can use the
network-address-cache-ttl property in
the global configuration to tune this value.
You might also want to consider running a caching name server on the same system as the server to provide an additional layer of protection against name service outages and to reduce network latency for name service requests.