ldns-test-edns: 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-test-edns - from package: ldns

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

On Debian possible default full paths are:

/usr/bin/ldns-test-edns - from package: ldnsutils

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