Documentation

dnslookup – command-line DNS query utility

dnslookup is a command-line utility for performing DNS queries against a specified resolver. It supports conventional DNS lookups as well as encrypted DNS protocols, allowing users to test nameservers without relying exclusively on the system’s default DNS configuration.

The application is particularly useful for diagnosing encrypted DNS connectivity and comparing responses from different resolvers. Users can specify the transport protocol, select a DNS server and request particular types of records.

dnslookup provides a relatively straightforward interface to several DNS protocols, making it suitable for network administrators and users investigating name resolution problems.

This is free and open source software.

Key Features

  • Supports conventional DNS queries over UDP and TCP.
  • Encrypted DNS support includes DNS over HTTPS (DoH), DNS over TLS (DoT), DNS over QUIC (DoQ) and DNSCrypt.
  • Supports HTTP/2 and HTTP/3 for DNS-over-HTTPS queries.
  • Can explicitly require HTTP/3 when connecting to a compatible DoH resolver.
  • Supports DNS-over-HTTPS endpoints requiring HTTP Basic authentication.
  • Accepts custom resolver addresses and encrypted DNS endpoints.
  • Supports DNS stamps for configuring compatible encrypted resolvers.
  • Allows users to specify DNS record types, including A, AAAA, MX, TXT and PTR.
  • Performs reverse DNS lookups, automatically recognising IPv4 and IPv6 addresses.
  • Supports encrypted resolver connections using hostnames or IP addresses.
  • Provides options for controlling DNS transport behaviour when testing different resolvers.
  • Provides machine-readable JSON output for scripts and automated DNS diagnostics.
  • Supports DNSSEC DO-bit control, EDNS Client Subnet, padding and custom EDNS options.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/ameshkov/dnslookup
Support:
Developer: Andrey Meshkov
License: MIT License

dnslookup in action

dnslookup is written in Go. Learn Go with our recommended free books and free tutorials.


Related Software

Alternatives to dig
dogDNS client with colorful output, DNS-over-TLS and DNS-over-HTTPS support
doggoCommand-line DNS client for humans
drillPerform DNS lookups and display answers returned from the name server(s)
dnslookupSupports plain DNS, DoH, DoT, DoQ, and DNSCrypt
dugGlobal DNS propagation checker
qSupport for UDP, TCP, DoT, DoH, DoQ and ODoH
DNS Clients
dogColourful output, understands normal command-line argument syntax
doggoCommand-line DNS client for humans
qTiny command line DNS client supporting UDP, TCP, DoT, DoH, DoQ and ODoH
ddclientUpdate dynamic DNS entries
GoDNSDynamic DNS (DDNS) client tool
digDNS lookup utility
awlDNS lookup tool
ZDNSHigh-speed DNS resolver and command line utility
dnslookupMake DNS lookups
dugGlobal DNS propagation checker
drillPerform DNS lookups
dnessDynamic DNS client
znsFast DNS lookup tool with DNSSEC validation and delegation tracing
In-a-DynSmall and simple Dynamic DNS, DDNS, client
dohQuery multiple DNS-over-HTTPS resolvers with JSON output
dnsupdateModern and flexible dynamic DNS client
ch4Dig-compatible DNS client with UDP, TCP and EDNS support
wigSimple and lightweight DNS client
dyndnscDynamic DNS update client

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted