Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun ndots(resolvConf: Path): Int

The ndots of resolvConf's options, the last one given, at most MAX_NDOTS as the resolver caps it: the dots a name needs to be tried as given before the search domains; DEFAULT_NDOTS when none is given.

Link copied to clipboard
fun parse(text: String): SrvRecord?

One SRV record's text, priority weight port target; null when it is not one.

Link copied to clipboard
fun records(name: String, settings: Map<String, String> = emptyMap()): List<SrvRecord>

The SRV records of the absolute name, as the JDK's DNS provider finds them, from the node's DNS servers unless settings names others (java.naming.provider.url); none when it finds none.

Link copied to clipboard
fun searchDomains(resolvConf: Path): List<String>

The search domains of resolvConf, in order; none when the file is absent or unreadable.