public class DnsSrv extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DnsSrv.SrvRecord |
| Constructor and Description |
|---|
DnsSrv() |
| Modifier and Type | Method and Description |
|---|---|
static List<DnsSrv.SrvRecord> |
lookupSrvRecords(String serviceName) |
static List<DnsSrv.SrvRecord> |
sortSrvRecords(List<DnsSrv.SrvRecord> srvRecords)
Sort a list of DNS SRV records according to the sorting rules described in rfc2782.
|
public static List<DnsSrv.SrvRecord> lookupSrvRecords(String serviceName) throws NamingException
NamingExceptionpublic static List<DnsSrv.SrvRecord> sortSrvRecords(List<DnsSrv.SrvRecord> srvRecords)
srvRecords - the list of DnsSrv.SrvRecords to sort.DnsSrv.SrvRecords.