Page 1 of 1

Bind findet named.conf nicht

Posted: 2003-11-19 20:56
by core
Hi,

simples Problem, habe Bind 9.2.3 mit --prefix=/prog/bind/ kompiliert. Wenn ich den named jetzt starte steht im syslog folgendes:
Nov 19 20:49:26 xion named[28462]: starting BIND 9.2.3
Nov 19 20:49:26 xion named[28462]: using 1 CPU
Nov 19 20:49:26 xion named[28462]: loading configuration from '/prog/bind//etc/named.conf'
Nov 19 20:49:26 xion named[28462]: none:0: open: /prog/bind//etc/named.conf: file not found
Nov 19 20:49:26 xion named[28462]: loading configuration: file not found
Nov 19 20:49:26 xion named[28462]: exiting (due to fatal error)
Wie sage ich Bind also den Pfad zu named.conf und muss ich den abschließenden Slash beim configure-prefix immer weglassen?

Re: Bind findet named.conf nicht

Posted: 2003-11-19 21:08
by Joe User
Core wrote:Wie sage ich Bind also den Pfad zu named.conf
Kopiere die named.conf (nach jeder Ã?nderung) nach /prog/bind/etc
Core wrote:und muss ich den abschließenden Slash beim configure-prefix immer weglassen?
Müssen nicht, solltest Du aber dennoch.

Re: Bind findet named.conf nicht

Posted: 2003-11-19 21:27
by wudmx
Core wrote:Hi,
simples Problem, habe Bind 9.2.3 mit --prefix=/prog/bind/ koompiliert. Wenn ich den named jetzt starte steht im syslog folgendes:
Nov 19 20:49:26 xion named[28462]: starting BIND 9.2.3
Nov 19 20:49:26 xion named[28462]: using 1 CPU
Nov 19 20:49:26 xion named[28462]: loading configuration from '/prog/bind//etc/named.conf'
Nov 19 20:49:26 xion named[28462]: none:0: open: /prog/bind//etc/named.conf: file not found
Nov 19 20:49:26 xion named[28462]: loading configuration: file not found
Nov 19 20:49:26 xion named[28462]: exiting (due to fatal error)
Wie sage ich Bind also den Pfad zu named.conf und muss ich den abschließenden Slash beim configure-prefix immer weglassen?
das sind ja zwei slashes nach bind... sollte vllt nur eins sein.. weiss nicht obs daran liegt, aber vllt hilft ja ein --prefix=/prog/bind anstatt--prefix=/prog/bind/

gruss
wudmx

Re: Bind findet named.conf nicht

Posted: 2003-11-20 17:52
by core
Naja ok, das mit Slash waere ja kein Problem, ich wollte vielmehr wissen ob ich (außer mit rndc) Bind sagen kann, dass die named.conf woanders liegt. Vielleicht ne spezielle configure-Option oder so...

edit:

Achja, vielleicht sollte ich doch erstmal weiter runterblaettern in der README....
--sysconfdir spezifiert den Pfad wo die Konfigurationsdateien reinkommen...

Re: Bind findet named.conf nicht

Posted: 2003-11-21 10:10
by wirsing
Andere Idee: Symbolischen Link von /prog/bind/etc auf /etc legen.

Re: Bind findet named.conf nicht

Posted: 2003-11-21 14:54
by core
jo war au mein erster gedankengang, aber ich bin da mehr so wie Hausmeister Krause - Ordnung muss sein. 8)