dns_lookup

Performs a DNS lookup.

Target function

Signature

1dns_lookup(name::string, ...)

Performs a DNS lookup.

dns_lookup is a global callable that can be used wherever an expression is valid. dns_lookup performs network or protocol work. Make timeouts, encodings, and authentication settings visible in calling code so failures are easier to diagnose.

Parameters

name
Required value of type string. Supply name positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1dns_lookup('example.com')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.