penryu / dug

Name resolution aggregator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dug

An exhaustive name resolution aggregator

Synopsis

Usage: dug [OPTIONS] <HOSTNAMES>...

Description

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
    • Google
    • 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.

dug will also use external utilities such as dig (from BIND9) or drill (from ldns) if found on the $PATH.

Output formats

The following output formats are available:

  • Table - a pretty-printed table of results
  • ASCII - grep and awk-friendly ASCII text
  • JSON - JSON array of results suitable for use with jq

See the examples for more information.

Installation

Build from source

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.

github

Coming soon.

About

Name resolution aggregator

License:MIT License


Languages

Language:Rust 99.6%Language:Makefile 0.4%