Q is a lightweight command-line DNS client written in Go for domain name resolution and network diagnostics. It supports traditional DNS communication and several encrypted transport protocols, including DNSCrypt and Oblivious DNS-over-HTTPS. Users can specify custom name servers, resource record types, and advanced query parameters. The utility presents query results in readable formats with configurable colors and time-to-live representations. Structured JSON and YAML output facilitates integration with scripts and external applications. It also supports reverse DNS resolution, autonomous system identification, and domain registration lookups through RDAP and WHOIS. Advanced TLS settings, HTTP configuration, and query timing statistics provide additional flexibility for investigating network behavior.
Features
- Support for UDP, TCP, DoT, DoH, DoQ, ODoH, and DNSCrypt protocols
- Configurable name servers, DNS record types, and advanced query parameters
- Human-readable query results with customizable colors and time-to-live formatting
- Multiple output formats including JSON, YAML, column-based, and raw representations
- Reverse DNS resolution, autonomous system identification, and registration lookups
- Advanced TLS configuration, HTTP request customization, and query performance statistics