tuweni / org.apache.tuweni.discovery / DNSDaemon

DNSDaemon

class DNSDaemon (source)

Resolves DNS records over time, refreshing records.

Parameters

enrLink - the ENR link to start with, of the form enrtree://PUBKEY@domain

listener - Listener notified when records are read and whenever they are updated.

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.

period - the period at which to poll DNS records

resolver -

Constructors

<init>

Resolves DNS records over time, refreshing records.

DNSDaemon(enrLink: String, listener: DNSDaemonListener?, seq: Long = 0, period: Long = 60000L, dnsServer: String? = null, resolver: Resolver = SimpleResolver(dnsServer))

Properties

listeners

val listeners: HashSet<DNSDaemonListener>

Functions

close

Close the daemon.

fun close(): Unit

start

fun start(): Unit

Companion Object Properties

logger

val logger: Logger!