sh: line 1: host: command not found und Invalid query name 1 im Apache-Log

Tweet this: sh: line 1: host: command not found und Invalid query name 1 im Apache-Log Dent this: sh: line 1: host: command not found und Invalid query name 1 im Apache-Log Datum: 16.07.2009 12:00:00

Ich habe vor einiger Zeit folgenden immer wiederkehrenden Fehler in den Log-Files meines Apachen gefunden:

sh: line 1: host: command not found

Das ganze deutet zuerst darauf hin, dass das Tool host (Ein Werkzeug zum Kontaktieren von DNS-Servern) nicht installiert ist.

Unter Ubuntu/Debian brachte das installieren von host eine scheinbare Abhilfe, allerdings nur scheinbar, stattdessen häufte sich jetzt ein neuer Fehler im Log: Invalid query name 1

Nach langem hin und her konnte ich als indirekten schuldigen PHP und dort das SMF-Forum dafür verantwortlich machen. Schuld war dabei die Einstellung hostname lookups des SMFs [und das dadurch aufgerufene gethostbyaddr()] wie ich dort im Forum dann herausfand. Als Lösung des Problems konnte man nun entweder dieses Feature ausschalten, oder wieder host deinstallieren und stattdessen dann bind9-hosts intalliere, da host gewisse Parameter nicht unterstützt die bind9-hosts kann.

Lösung

Unter Debian/Ubuntu:

apt-get install bind9-host

Thread im SMF-Forum


Trackbacks (0)

Trackbackurl: http://www.robo47.net/trackback/text/9

Es sind keine Trackbacks vorhanden.


Kommentare (0)

Es sind noch keine Kommentare vorhanden.

Kommentar erstellen

 
 

(used for gravatar)

Html ist begrenzt erlaubt: <abbr title="">, <acronym title="">, <em>, <strong>, <a href="">, <ul>, <ol>, <li>, <code>, <pre>, <cite>, <q cite="">, <blockquote cite="">, <sub>, <sup>, <p>, <br>


Comments and Trackbacks use Akismet for Spam-Protection, more about Akismet in thePrivacy Policy

* Pflichtfeld
 

You liked it ? Link it on your homepage or blog: