tigase.util.DNSResolverFactory.getInstance() should be used instead@Deprecated public class DNSResolver extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,DNSEntry> |
ip_cache
Deprecated.
Field description
|
static Map<String,DNSEntry[]> |
srv_cache
Deprecated.
Field description
|
| Constructor and Description |
|---|
DNSResolver()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
getDefaultHostname()
Deprecated.
Method description
|
static String[] |
getDefHostNames()
Deprecated.
Method description
|
static String |
getHostIP(String hostname)
Deprecated.
Resolve IP address for the given
hostname |
static String[] |
getHostIPs(String hostname)
Deprecated.
Resolve all IP addresses for the given
hostname |
static DNSEntry[] |
getHostSRV_Entries(String hostname)
Deprecated.
Retrieves list of SRV DNS entries for given
hostname. |
static DNSEntry[] |
getHostSRV_Entries(String hostname,
String service,
int defPort)
Deprecated.
Retrieves list of DNS entries for given
hostname. |
static DNSEntry |
getHostSRV_Entry(String hostname)
Deprecated.
Retrieves service DNS entry with highest priority for given
hostname. |
static DNSEntry |
getHostSRV_Entry(String hostname,
String service,
int defPort)
Deprecated.
Retrieves list of DNS entries for given
hostname. |
static String |
getHostSRV_IP(String hostname)
Deprecated.
Returns
IP address of the machine providing the service. |
static void |
main(String[] args)
Deprecated.
main method outputting various information about hostnames |
public static void main(String[] args) throws Exception
main method outputting various information about hostnamesargs - a String[] containing domains to query, if none provided
default one will be usedExceptionpublic static String getDefaultHostname()
public static String[] getDefHostNames()
public static String getHostIP(String hostname) throws UnknownHostException
hostnamehostname - the domain name for which this record is validIP address of the machine providing the service.UnknownHostExceptionpublic static String[] getHostIPs(String hostname) throws UnknownHostException
hostnamehostname - the domain name for which this record is validIP addresses on which target host provide service.UnknownHostExceptionpublic static DNSEntry[] getHostSRV_Entries(String hostname) throws UnknownHostException
hostname. Performs lookup
for _xmpp-server._tcp SRV records.hostname - the domain name for which this record is validUnknownHostExceptionpublic static DNSEntry[] getHostSRV_Entries(String hostname, String service, int defPort) throws UnknownHostException
hostname. Allow specifying
particular type of SRV record.hostname - the domain name for which this record is validservice - type of SRV records, for example _xmpp-server._tcpdefPort - default port number in case DNS records is missing one.UnknownHostExceptionpublic static DNSEntry getHostSRV_Entry(String hostname) throws UnknownHostException
hostname.
Performs lookup for _xmpp-server._tcp SRV records.hostname - name to resolvehostnameUnknownHostExceptionpublic static DNSEntry getHostSRV_Entry(String hostname, String service, int defPort) throws UnknownHostException
hostname. Allow specifying
particular type of SRV record.hostname - name to resolveservice - type of SRV records, for example _xmpp-server._tcpdefPort - default port number in case DNS records is missing one.hostnameUnknownHostExceptionpublic static String getHostSRV_IP(String hostname) throws UnknownHostException
IP address of the machine providing the service.hostname - the domain name for which this record is validUnknownHostExceptionCopyright © 2018 "Tigase, Inc.". All rights reserved.