public class DNSHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getScionDiscoveryAddress(String hostName) |
static InetAddress |
queryA(org.xbill.DNS.Name hostName) |
static InetAddress |
queryAAAA(org.xbill.DNS.Name hostName) |
static <R> R |
queryTXT(org.xbill.DNS.Name name,
String key,
Function<String,R> valueParser) |
static <R> R |
queryTXT(String hostName,
String key,
Function<String,R> valueParser)
Perform a DNS lookup on "hostName" for a TXT entry with key "key".
|
static String |
searchForDiscoveryService() |
public static <R> R queryTXT(String hostName, String key, Function<String,R> valueParser)
R - Result type.hostName - host namekey - TXT keyvalueParser - TXT value parsing functionpublic static <R> R queryTXT(org.xbill.DNS.Name name,
String key,
Function<String,R> valueParser)
public static InetAddress queryA(org.xbill.DNS.Name hostName)
public static InetAddress queryAAAA(org.xbill.DNS.Name hostName)
public static String searchForDiscoveryService()
public static String getScionDiscoveryAddress(String hostName) throws IOException
IOExceptionCopyright © 2024. All rights reserved.