public interface DNSResolverIfc
| Modifier and Type | Field and Description |
|---|---|
static Logger |
log |
static Random |
rand |
static String |
TIGASE_PRIMARY_ADDRESS |
static String |
TIGASE_SECONDARY_ADDRESS |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultHost()
Method provides default host information for the installation.
|
default String[] |
getDefaultHosts()
Method provides an array of all local host informations, by default it
contains defaultHost.
|
default String |
getHostIP(String hostname)
Resolve IP address for the given
hostname |
String[] |
getHostIPs(String hostname)
Resolve all IP addresses for the given
hostname |
default DNSEntry[] |
getHostSRV_Entries(String hostname)
Retrieves list of SRV DNS entries for given
hostname. |
default DNSEntry[] |
getHostSRV_Entries(String hostname,
String service,
int defPort)
Retrieves list of DNS entries for given
hostname. |
default DNSEntry |
getHostSRV_Entry(String hostname)
Retrieves service DNS entry with highest priority for given
hostname. |
default DNSEntry |
getHostSRV_Entry(String hostname,
String service,
int defPort)
Retrieves list of DNS entries for given
hostname. |
default String |
getHostSRV_IP(String hostname)
Returns
IP address of the machine providing the service. |
default String |
getSecondaryHost()
Method provides alternative host information for the current instance.
|
static final String TIGASE_PRIMARY_ADDRESS
static final String TIGASE_SECONDARY_ADDRESS
static final Logger log
static final Random rand
String getDefaultHost()
default String[] getDefaultHosts()
default String getSecondaryHost()
default String getHostIP(String hostname) throws UnknownHostException
hostnamehostname - the domain name for which this record is validIP address of the machine providing the service.UnknownHostExceptionString[] getHostIPs(String hostname) throws UnknownHostException
hostnamehostname - the domain name for which this record is validIP addresses on which target host provide service.UnknownHostExceptiondefault 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 validUnknownHostExceptiondefault 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.UnknownHostExceptiondefault DNSEntry getHostSRV_Entry(String hostname) throws UnknownHostException
hostname.
Performs lookup for _xmpp-server._tcp SRV records.hostname - name to resolvehostnameUnknownHostExceptiondefault 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.hostnameUnknownHostExceptiondefault 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 © 2022 "Tigase, Inc.". All rights reserved.