ldns-key2ds: 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 CentOS possible default full paths are:

/usr/bin/ldns-key2ds - from package: ldns

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/ldns-key2ds - from package: ldnsutils

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