Required Instance Methodswift-nio 2.81.0NIOPosix

initiateAQuery(host:port:)

Initiate a DNS A query for a given host.

Resolver.swift:32
func initiateAQuery(host: String, port: Int) -> EventLoopFuture<[SocketAddress]>

Parameters

host

The hostname to do an A lookup on.

port

The port we’ll be connecting to.

Returns

An EventLoopFuture that fires with the result of the lookup.