dnsq: 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/dnsq - from package: ndjbdns

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