/example |
1. doggo
Command-line DNS client for humans doggo.mrkaran.dev
https://github.com/mr-karan/doggo
1.1. help
$ go/bin/doggo
NAME: doggo 🐶 DNS Client for Humans USAGE: doggo [--] [query options] [arguments...] VERSION: unknown - unknown EXAMPLES: doggo mrkaran.dev Query a domain using defaults. doggo mrkaran.dev CNAME Query for a CNAME record. doggo mrkaran.dev MX @9.9.9.9 Uses a custom DNS resolver. doggo -q mrkaran.dev -t MX -n 1.1.1.1 Using named arguments. Free Form Arguments: Supply hostnames, query types, and classes without flags. Example: doggo mrkaran.dev A @1.1.1.1
Transport Options: Specify the protocol with a URL-type scheme. UDP is used if no scheme is specified. @udp:// eg: @1.1.1.1 initiates a UDP query to 1.1.1.1:53. @tcp:// eg: @tcp://1.1.1.1 initiates a TCP query to 1.1.1.1:53. @https:// eg: @https://cloudflare-dns.com/dns-query initiates a DOH query to Cloudflare via DoH. @tls:// eg: @tls://1.1.1.1 initiates a DoT query to 1.1.1.1:853. @sdns:// initiates a DNSCrypt or DoH query using a DNS stamp. @quic:// initiates a DOQ query.
Query Options: -q, --query=HOSTNAME Hostname to query the DNS records for (eg mrkaran.dev). -t, --type=TYPE Type of the DNS Record (A, MX, NS etc). -n, --nameserver=ADDR Address of a specific nameserver to send queries to (9.9.9.9, 8.8.8.8 etc). -c, --class=CLASS Network class of the DNS record (IN, CH, HS etc). -x, --reverse Performs a DNS Lookup for an IPv4 or IPv6 address. Sets the query type and class to PTR and IN respectively.
Resolver Options: --strategy=STRATEGY Specify strategy to query nameserver listed in etc/resolv.conf. (all, random, first). --ndots=INT Specify ndots parameter. Takes value from /etc/resolv.conf if using the system namesever or 1 otherwise. --search Use the search list defined in resolv.conf. Defaults to true. Set --search=false to disable search list. --timeout Specify timeout (in seconds) for the resolver to return a response. -4 --ipv4 Use IPv4 only. -6 --ipv6 Use IPv6 only. --ndots=INT Specify ndots parameter. Takes value from /etc/resolv.conf if using the system namesever or 1 otherwise. --tls-hostname=HOSTNAME Provide a hostname for doing verification of the certificate if the provided DoT nameserver is an IP. --skip-hostname-verification Skip TLS Hostname Verification in case of DOT Lookups.
Output Options: -J, --json Format the output as JSON. --short Short output format. Shows only the response section. --color Defaults to true. Set --color=false to disable colored output. --debug Enable debug logging. --time Shows how long the response took from the server.