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
hostname
hostname
- the domain name for which this record is validIP address
of the machine providing the service.UnknownHostException
String[] getHostIPs(String hostname) throws UnknownHostException
hostname
hostname
- the domain name for which this record is validIP addresses
on which target host provide service.UnknownHostException
default 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 validUnknownHostException
default 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._tcp
defPort
- default port number in case DNS records is missing one.UnknownHostException
default DNSEntry getHostSRV_Entry(String hostname) throws UnknownHostException
hostname
. Performs lookup for
_xmpp-server._tcp
SRV records.hostname
- name to resolvehostname
UnknownHostException
default 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._tcp
defPort
- default port number in case DNS records is missing one.hostname
UnknownHostException
default String getHostSRV_IP(String hostname) throws UnknownHostException
IP address
of the machine providing the service.hostname
- the domain name for which this record is validUnknownHostException
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.