public class SystemDefaultDnsResolver extends Object implements DnsResolver
InetAddress.getAllByName(String)
to resolve hosts to ip addressesConstructor and Description |
---|
SystemDefaultDnsResolver() |
public InetAddress[] resolve(String host) throws UnknownHostException
resolve
in interface DnsResolver
UnknownHostException
Copyright © 2023. All rights reserved.