public class DnsSrv extends Object
| Modifier and Type | Class | Description |
|---|---|---|
static class |
DnsSrv.SrvRecord |
| Constructor | Description |
|---|---|
DnsSrv() |
| Modifier and Type | Method | 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.