DNSResolverIfc¶
-
public interface
DNSResolverIfc
¶
Fields¶
Methods¶
getDefaultHost¶
getDefaultHosts¶
getHostIP¶
getHostIPs¶
getHostSRV_Entries¶
getHostSRV_Entries¶
-
public DNSEntry[]
getHostSRV_Entries
(String hostname, String service, int defPort)¶ Retrieves list of DNS entries for given
hostname
. Allow specifying particular type of SRV record.Parameters: - hostname – the domain name for which this record is valid
- service – type of SRV records, for example
_xmpp-server._tcp
- defPort – default port number in case DNS records is missing one.
Returns: Array of the DNSEntry records
getHostSRV_Entry¶
getHostSRV_Entry¶
-
public DNSEntry
getHostSRV_Entry
(String hostname, String service, int defPort)¶ Retrieves list of DNS entries for given
hostname
. Allow specifying particular type of SRV record.Parameters: - hostname – name to resolve
- service – type of SRV records, for example
_xmpp-server._tcp
- defPort – default port number in case DNS records is missing one.
Returns: DNSEntry object containing DNS record with highest priority for given
hostname