@Nullable
    private List<InetAddress> resolveHostsFileEntries(String hostname) {
        final List<InetAddress> addresses;
        if (hostsFileEntriesResolver instanceof DefaultHostsFileEntriesResolver) {
            addresses = ((DefaultHostsFileEntriesResolver) hostsFileEntriesResolver)
                    .addresses(hostname, resolvedAddressTypes);
        } else {
            final InetAddress address = hostsFileEntriesResolver.address(hostname, resolvedAddressTypes);
            addresses = address != null ? ImmutableList.of(address) : null;
        }
        return addresses == null && isLocalWindowsHost(hostname) ?
               ImmutableList.of(LOCALHOST_ADDRESS) : addresses;
    }
Checks whether the given hostname is the localhost/host (computer) name on Windows OS.
Windows OS removed the localhost/host (computer) name information from the hosts file in the later
versions
and such hostname cannot be resolved from hosts file.
See https://github.com/netty/netty/issues/5386
See https://github.com/netty/netty/issues/11142
core/src/main/java/com/linecorp/armeria/internal/client/dns/HostsFileDnsResolver.java