resolve

external fun resolve(hostname: String, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>) -> Unit)(source)

Uses the DNS protocol to resolve a host name (e.g. 'nodejs.org') into an array of the resource records. The callback function has arguments (err, records). When successful, records will be an array of resource records. The type and structure of individual results varies based on rrtype:

On error, err is an Error object, where err.code is one of the DNS error codes.

Since

v0.1.27

Parameters

hostname

Host name to resolve.

rrtype='A' Resource record type.


external fun resolve(hostname: String, rrtype: ResourceRecordType.StringRecord, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.ANY, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<{node/dns/AnyRecord=} kotlin/Any>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.CAA, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(address)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/CaaRecord>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.MX, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/MxRecord>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.NAPTR, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/NaptrRecord>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.SOA, callback: (err: ErrnoException?, addresses: SoaRecord) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.SRV, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/SrvRecord>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.TLSA, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/TlsaRecord>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: ResourceRecordType.TXT, callback: (err: ErrnoException?, @R|kotlin/ParameterName|(name = String(addresses)) ERROR CLASS: Symbol not found for js.array.ReadonlyArray<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>>) -> Unit)(source)
external fun resolve(hostname: String, rrtype: String, callback: (err: ErrnoException?, addresses: Any) -> Unit)(source)
suspend external fun resolve(hostname: String): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.StringRecord): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.ANY): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<{node/dns/AnyRecord=} kotlin/Any>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.CAA): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/CaaRecord>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.MX): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/MxRecord>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.NAPTR): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/NaptrRecord>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.SOA): SoaRecord(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.SRV): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/SrvRecord>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.TLSA): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<node/dns/TlsaRecord>(source)
suspend external fun resolve(hostname: String, rrtype: ResourceRecordType.TXT): ERROR CLASS: Symbol not found for js.array.ReadonlyArray<ERROR CLASS: Symbol not found for js.array.ReadonlyArray<kotlin/String>>(source)
suspend external fun resolve(hostname: String, rrtype: String): Any(source)