Doggo in Termux – DNS Lookup and Domain Information Tool

Doggo is a simple DNS lookup tool for Termux that lets you check DNS records from the command line. You can use it to find A, AAAA, CNAME, MX, NS, TXT, and other DNS records. It also supports reverse lookups, custom DNS servers, encrypted DNS, DNS tracing, and JSON output.

Here’s what you can do with doggo in Termux:

  • Query DNS records for a domain.
  • Check A, AAAA, CNAME, MX, NS, TXT, and other records.
  • Perform reverse DNS lookups.
  • Trace DNS delegation from the root servers.
  • Query authoritative nameservers.
  • Check DNSSEC information.
  • Use Globalping for DNS queries from different locations.

Install Doggo in Termux

You can easily install Doggo on Termux using the following command below. copy and run the command on your terminal.

First, update and upgrade the packages:

pkg update && pkg upgrade -y

Install Doggo:

pkg install doggo -y

Once the installation is complete, Doggo is ready to use in Termux.

Use Doggo in Termux

Doggo provides several commands that let you query DNS records and control how the DNS lookup is performed.

First, you need to set Cloudflare DNS (1.1.1.1) as the default DNS resolver for Doggo.

echo "alias doggo='doggo @1.1.1.1'" >> ~/.bashrc && source ~/.bashrc

Query a domain using the default settings:

doggo example.com

Query a specific DNS record type:

doggo example.com CNAME

Query an MX record:

doggo example.com MX

Use a custom DNS resolver:

doggo example.com MX @9.9.9.9

You can also use named arguments:

doggo -q example.com -t MX -n 1.1.1.1

DNS Record Types

Doggo supports many common DNS record types.

Check an A record:

doggo example.com A

Check an AAAA record:

doggo example.com AAAA

Check a CNAME record:

doggo example.com CNAME

Check an MX record:

doggo example.com MX

Check an NS record:

doggo example.com NS

Check a TXT record:

doggo example.com TXT

Query all supported DNS record types:

doggo example.com --any

Reverse DNS Lookup

You can use Doggo to perform a reverse DNS lookup for an IPv4 or IPv6 address:

doggo -x 8.8.8.8

DNS Trace

Trace the DNS delegation path from the root servers:

doggo example.com --trace

DNS Resolvers

Use a specific nameserver:

doggo example.com @1.1.1.1

Use a DNS-over-HTTPS resolver:

doggo example.com @https://dns.google/dns-query

Use HTTP/3 with a DoH nameserver:

doggo example.com @https://dns.google/dns-query --http3

Use DNS-over-TLS:

doggo example.com @tls://1.1.1.1

DNS Query Options

Use IPv4 only:

doggo example.com -4

Use IPv6 only:

doggo example.com -6

Set a custom timeout:

doggo example.com --timeout=5s

Enable DNSSEC OK:

doggo example.com --do

Set the Authoritative Answer flag:

doggo example.com --aa

Enable Authenticated Data:

doggo example.com --ad

Output Options

Show only the response section:

doggo example.com --short

Display the results as JSON:

doggo example.com --json

Show how long the DNS query took:

doggo example.com --time

Disable colored output:

doggo example.com --color=false

Show the installed version:

doggo --version

Show the shell completion options:

doggo completions

These commands give you different ways to query DNS records, select resolvers, use encrypted DNS protocols, perform reverse lookups, and control the output.

End Note

Doggo is a useful DNS lookup tool for checking domain records and exploring DNS information from the Termux terminal. It supports multiple record types, DNS resolvers, encrypted DNS protocols, DNS tracing, reverse lookups, and different output options.

SHARE THIS POST: