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

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