vertx / io.vertx.reactivex.core / Vertx / createDnsClient

createDnsClient

open fun createDnsClient(port: Int, host: String): DnsClient

Create a DNS client to connect to a DNS server at the specified host and port, with the default query timeout (5 seconds)

Parameters

port - the port

host - the host

Return
the DNS client

open fun createDnsClient(): DnsClient

Create a DNS client to connect to the DNS server configured by io.vertx.core.VertxOptions

DNS client takes the first configured resolver address provided by }

Return
the DNS client

open fun createDnsClient(options: DnsClientOptions): DnsClient

Create a DNS client to connect to a DNS server

Parameters

options - the client options

Return
the DNS client