Package arc.net.dns
Class ArcDns
java.lang.Object
arc.net.dns.ArcDns
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Seq<NameserverProvider>
static Seq<InetSocketAddress>
Returns all located serversgetSrvRecords
(String domain) Lookup the SRV record of a domain in the format_service._protocol.name
with the list of nameservers fromgetNameservers()
.getSrvRecords
(String domain, InetSocketAddress nameserver) Lookup the SRV record of a domain in the format_service._protocol.name
.static void
static void
setNameserverProviders
(Seq<NameserverProvider> providers) Set a new ordered list of resolver config providers.
-
Field Details
-
dnsResolverPort
public static final int dnsResolverPortDefault dns server port.- See Also:
-
-
Constructor Details
-
ArcDns
public ArcDns()
-
-
Method Details
-
getNameserverProviders
-
setNameserverProviders
Set a new ordered list of resolver config providers. -
getNameservers
Returns all located servers -
refreshNameservers
public static void refreshNameservers() -
getSrvRecords
Lookup the SRV record of a domain in the format_service._protocol.name
with the list of nameservers fromgetNameservers()
. -
getSrvRecords
public static Seq<SRVRecord> getSrvRecords(String domain, InetSocketAddress nameserver) throws IOException Lookup the SRV record of a domain in the format_service._protocol.name
. The results are sorted by priority, then by weight.- Throws:
IOException
-