dns

command
v0.3.0-rc.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

dns — DNS A lookup over UDP, written with the Debuglet Go SDK.

Sends one query to -addr and prints the A records of the reply. It builds and parses the message itself: a debuglet has no resolver and no operating-system sockets, only the executor's host imports.

Build and run:

make wasm SAMPLE_DIR=examples/debuglets/go/dns
dbl run --wasm examples/debuglets/go/dns/debuglet.wasm \
  --executor EXECUTOR_ID --allow 1.1.1.1 --wait -- -addr 1.1.1.1:53 -name example.org

The resolver's address must be in the job's --allow list, and only a resolver you are authorized to query belongs there; the default names a public one, so the debuglet reaches it only when a submission says so. A UDP read has no deadline of its own: if the reply is lost, the debuglet waits until the job's execution budget ends it, so give the job a budget you are willing to spend.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL