public static void setHostNameForTestingOnly(String hostName) {
        preferredHostName = hostName;
    }
Return a public and fully qualified hostname for localhost that
resolves to an IP address on a network interface.

@return the preferred name of localhost
vespajlib/src/main/java/com/yahoo/net/HostName.java