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 -yInstall Doggo:
pkg install doggo -yOnce 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 ~/.bashrcQuery a domain using the default settings:
doggo example.comQuery a specific DNS record type:
doggo example.com CNAMEQuery an MX record:
doggo example.com MXUse a custom DNS resolver:
doggo example.com MX @9.9.9.9You can also use named arguments:
doggo -q example.com -t MX -n 1.1.1.1DNS Record Types
Doggo supports many common DNS record types.
Check an A record:
doggo example.com ACheck an AAAA record:
doggo example.com AAAACheck a CNAME record:
doggo example.com CNAMECheck an MX record:
doggo example.com MXCheck an NS record:
doggo example.com NSCheck a TXT record:
doggo example.com TXTQuery all supported DNS record types:
doggo example.com --anyReverse DNS Lookup
You can use Doggo to perform a reverse DNS lookup for an IPv4 or IPv6 address:
doggo -x 8.8.8.8DNS Trace
Trace the DNS delegation path from the root servers:
doggo example.com --traceDNS Resolvers
Use a specific nameserver:
doggo example.com @1.1.1.1Use a DNS-over-HTTPS resolver:
doggo example.com @https://dns.google/dns-queryUse HTTP/3 with a DoH nameserver:
doggo example.com @https://dns.google/dns-query --http3Use DNS-over-TLS:
doggo example.com @tls://1.1.1.1DNS Query Options
Use IPv4 only:
doggo example.com -4Use IPv6 only:
doggo example.com -6Set a custom timeout:
doggo example.com --timeout=5sEnable DNSSEC OK:
doggo example.com --doSet the Authoritative Answer flag:
doggo example.com --aaEnable Authenticated Data:
doggo example.com --adOutput Options
Show only the response section:
doggo example.com --shortDisplay the results as JSON:
doggo example.com --jsonShow how long the DNS query took:
doggo example.com --timeDisable colored output:
doggo example.com --color=falseShow the installed version:
doggo --versionShow the shell completion options:
doggo completionsThese 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.

