An exhaustive name resolution aggregator
Usage: dug [OPTIONS] <HOSTNAMES>...
dug
is designed to be an exhaustive name lookup tool, looking up the given hostname(s)
using any method available in the tool or on the system.
Resolvers are tried concurrently where possible.
Some methods/sources used are:
- The local host's configured resolver
- e.g., gethostname(3), gethostbyname(3), getnameinfo(3), etc.
- Major public DNS resolvers:
- Cloudflare
- Quad9
- A simulated nslookup
- Works by parsing
/etc/resolv.conf
(if present) and querying the hosts found. - May be significantly different from OS-based resolution.
- Works by parsing
dug
will also use external utilities such as dig
(from BIND9) or drill
(from
ldns) if found on the $PATH
.
The following output formats are available:
- Table - a pretty-printed table of results
- ASCII -
grep
andawk
-friendly ASCII text - JSON - JSON array of results suitable for use with
jq
See the examples for more information.
If you already have a Rust toolchain installed, you can simply:
cargo install dug
The simplest way to install a Rust toolchain is with rustup.
Coming soon.