ldns-keyfetcher command not found

In this troubleshooting guide we learn how to fix ldns-keyfetcher command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

ldns-keyfetcher: command not found

or when using sudo you get the following error message

sudo: ldns-keyfetcher: command not found

Solutions to ldns-keyfetcher: command not found

How To Fix ldns-keyfetcher: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ldns-keyfetcher is provided by ldnsutils package.

ldnsutils is:

The goal of ldns is to simplify DNS programming, it supports recent RFCs like the DNSSEC documents, and allows developers to easily create software conforming to current RFCs, and experimental software for current Internet Drafts.

This package contains various client programs related to DNS that are based on top of libldns library and DRILL tool which is similar to dig. These tools were designed with DNSSEC in mind and are useful for DNS and DNSSEC testing and debugging.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ldnsutils

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ldnsutils.

sudo apt -y install ldnsutils

Or if you have aptitude installed you can use the following command.

sudo aptitude install ldnsutils

Summary

In this tutorial we learn how to fix ldns-keyfetcher command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.