JndiSrvLookup

class JndiSrvLookup(resolvConf: Path = RESOLV_CONF, query: (name: String) -> List<SrvRecord> = Companion::records) : SrvLookup

The SRV lookup of the JDK's DNS provider (JNDI), with the search domains of the node's resolver: a name without a trailing dot is tried under each search domain of resolvConf and as given, the first that has records answering, as given first when it has at least the resolver's ndots dots (options ndots:n, 1 by default; Kubernetes gives its pods 5); a name with one is absolute. resolvConf is read once; it is absent on a developer's machine, where a name is tried as given alone.

Constructors

Link copied to clipboard
constructor(resolvConf: Path = RESOLV_CONF, query: (name: String) -> List<SrvRecord> = Companion::records)

Types

Link copied to clipboard

Functions

Link copied to clipboard

The names name is tried as, in order.

Link copied to clipboard
open override fun srv(name: String): List<SrvRecord>