Install Drill On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

Install Drill On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS

drill

Perform various DNS queries.

Maintainer: Debian DNS Packaging


Section: net

Install drill

  • Debian apt-get install ldnsutils Click to copy
  • Ubuntu apt-get install ldnsutils Click to copy
  • Alpine OS apk add ldns Click to copy
  • Arch Linux pacman -S ldns Click to copy
  • Kali Linux apt-get install ldnsutils Click to copy
  • CentOS yum install ldns Click to copy
  • Fedora dnf install ldns-utils Click to copy
  • Raspbian apt-get install ldnsutils Click to copy
  • macOS brew install ldns Click to copy

Perform various DNS queries.

How to use drill?

Below are few example commands for drill that you can use in the terminal.

Lookup the IP(s) associated with a hostname (A records):
drill hostname.comClick to copy
Lookup the mail server(s) associated with a given domain name (MX record):
drill mx hostname.comClick to copy
Get all types of records for a given domain name:
drill any hostname.comClick to copy
Specify an alternate DNS server to query:
drill hostname.com @8.8.8.8Click to copy
Perform a reverse DNS lookup on an IP address (PTR record):
drill -x 8.8.8.8Click to copy
Perform DNSSEC trace from root servers down to a domain name:
drill -TD hostname.comClick to copy
Show DNSKEY record(s) for a domain name:
drill -s dnskey hostname.comClick to copy
Installing drill command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS operating systems. Once you run the command it will install the latest version of drill 2026 package in your OS.