Effect Dnspub

Source
:effect(pub) Dns
  .resolve ( Str  (Result (Vec Str) Str) )
  .resolve-one ( Str  (Result Str Str) )
  .reverse-lookup ( Str  (Result Str Str) )
Description

DNS resolution effect. Hostnames and IP-address textual forms are carried as Str in this placeholder decl.

Parent chain:IONetDns

Operations

.resolve ( Str (Result (Vec Str) Str) )

Resolve a hostname to all associated IP addresses (textual form). Returns a non-empty vector on success.

.resolve-one ( Str (Result Str Str) )

Resolve a hostname to a single IP address (textual form).

.reverse-lookup ( Str (Result Str Str) )

Reverse-lookup an IP address (textual form) to its hostname.