getdns_query: 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/getdns_query - from package: getdns-devel

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