class DNSResolver
(source)
Resolves a set of ENR nodes from a host name.
dnsServer
- the DNS server to use for DNS query. If null, the default DNS server will be used.
seq
- the sequence number of the root record. If the root record seq is higher, proceed with visit.
<init> |
Resolves a set of ENR nodes from a host name. DNSResolver(dnsServer: String? = null, seq: Long = 0, resolver: Resolver = SimpleResolver(dnsServer)) |
seq |
the sequence number of the root record. If the root record seq is higher, proceed with visit. var seq: Long |
collectAll |
Convenience method to read all ENRs, from a top-level record. fun collectAll(enrLink: String): List<EthereumNodeRecord> |
resolveRecord |
Resolves one DNS record associated with the given domain name. fun resolveRecord(domainName: String): DNSEntry? |
resolveRecordRaw |
Resolves the first TXT record associated with a domain name, and returns it, or null if no such record exists or the record cannot be read. fun resolveRecordRaw(domainName: String): String? |
visitTree |
Reads a complete tree of record, starting with the top-level record. fun visitTree(enrLink: String, visitor: DNSVisitor): Unit |