ldap2dns command not found

In this troubleshooting guide we learn how to fix ldap2dns command not found error message

Introduction

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

ldap2dns: command not found

or when using sudo you get the following error message

sudo: ldap2dns: command not found

Solutions to ldap2dns: command not found

How To Fix ldap2dns: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu ldap2dns is provided by ldap2dns package.

ldap2dns is:

ldap2dns is a program to create DNS (Domain Name Service) records directly from a LDAP directory. It can and should be used to replace the secondary name-server by a second primary one. ldap2dns reduces all kind of administration overhead: No more flat file editing, no more zone file editing. After having installed ldap2dns, the administrator only has to access the LDAP directory.

ldap2dns is designed to write ASCII data files used by tinydns from the djbdns package, but also may be used to write .db-files used by named as found in the BIND package.

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

sudo apt-get -y install ldap2dns

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

You can also use apt command to install ldap2dns.

sudo apt -y install ldap2dns

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

sudo aptitude install ldap2dns

Summary

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