Forum Discussion
14 years ago
The answer provided in another post on this topic was that underscores are technically not legal characters for hostnames. Since they are valid in DNS entries, however, the application should handle this more gracefully than throwing a NullPointerException with no additional information provided.
A good use case for this is where services are located behind a load balancer that is replicated to provide fault tolerance. In this case the target "hostname" must be a virtual name that is resolved by DNS to point to whichever load balancer is currently active. Many organizations seem to put underscores in these virtual names for some reason.
A good use case for this is where services are located behind a load balancer that is replicated to provide fault tolerance. In this case the target "hostname" must be a virtual name that is resolved by DNS to point to whichever load balancer is currently active. Many organizations seem to put underscores in these virtual names for some reason.