public final class DnsResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static List<SrvRecord> |
resolveSRV(CharSequence service,
CharSequence domain,
long timeout)
Resolves DNS SRV records for the given domain.
|
static List<TxtRecord> |
resolveTXT(CharSequence domain,
long timeout)
Resolves DNS TXT records for the given domain.
|
public static List<SrvRecord> resolveSRV(CharSequence service, CharSequence domain, long timeout) throws IOException
The service is "xmpp-client", the protocol is "tcp", resulting in a query of _xmpp-client._tcp.domain.
service - The service, usually "xmpp-client" or "xmpps-client".domain - The domain.timeout - The timeout.IOException - If a timeout occurs or no connection to the DNS server can be established.public static List<TxtRecord> resolveTXT(CharSequence domain, long timeout) throws IOException
domain - The domain.timeout - The timeout.IOException - If a timeout occurs or no connection to the DNS server can be established.Copyright © 2014–2017 XMPP.rocks. All rights reserved.