ldap2dns: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/ldap2dns - from package: ldap2dns

You may install the required package with command apt-get install {package}
Error in other languages:
ldap2dns: bevel nie gevind nie
ldap2dns: comandă negăsită
ldap2dns: comando não encontrado
ldap2dns: commande introuvable
ldap2dns: command not found
ldap2dns: käsku ei ole
ldap2dns: không tìm thấy lệnh
ldap2dns: komanda nerasta
ldap2dns: Kommando nicht gefunden.
ldap2dns: kommandot finns inte
ldap2dns: komut yok
ldap2dns: nie znaleziono polecenia
ldap2dns: níor aimsíodh an t-ordú
ldap2dns: no se encontró la orden
ldap2dns: no s'ha trobat l'ordre
ldap2dns: opdracht niet gevonden
ldap2dns: parancs nem található
ldap2dns: perintah tidak ditemukan
ldap2dns: príkaz nenájdený
ldap2dns: příkaz nenalezen
ldap2dns: команда не найдена
ldap2dns: командата не е открита
ldap2dns: 命令找不到
ldap2dns: コマンドが見つかりません