DNSLookup is a lightweight command-line utility written in Go for performing DNS queries against specified name servers. It supports traditional DNS communication over UDP and TCP alongside encrypted DNS protocols. Users can query different resource record types, including A, AAAA, TXT, HTTPS, and PTR records. The utility automatically recognizes IPv4 and IPv6 addresses when performing reverse DNS lookups. Configurable query parameters include DNSSEC requests, EDNS options, client subnet information, and certificate verification settings. It provides machine-readable JSON output for integration with scripts and automated diagnostic tools. Verbose logging helps network administrators investigate resolver behavior, connectivity problems, and encrypted DNS configurations.
Features
- DNS queries using system-default resolvers or manually specified name servers
- Support for DNS-over-HTTPS, DNS-over-TLS, DNS-over-QUIC, and DNSCrypt protocols
- Configurable DNS resource record types and query class parameters
- Automatic reverse DNS lookups for IPv4 and IPv6 addresses
- Advanced query customization with DNSSEC requests and EDNS extensions
- Machine-readable JSON output and verbose logging for network troubleshooting