Bind 9.2.1 und OpenBSD

Post Reply
Message
Author
Leon

Bind 9.2.1 und OpenBSD

#1 Post by Leon »

Hallo an alle,

falls Descartes dies liest: Ja, es hat funktioniert....

Nun plagt mich aber auch schon ein weiteres Problem.
Ich möchte Bind 9.2.1 auf dem OBSD 3.2 Server laufen lassen und das Kompilieren hat ohne Probleme gefunzt.
Wenn ich aber nun meine Zonendateien in /var/named ablege, sowie die named.conf in /etc bringt mir ein "ndc start" eine Fehlermeldung das er nicht starten kann weil er die config Datei in namedb nicht findet!
Hat sich in der neuen Version von Bind der Name und Standort der Config verändert?
Es befindet sich eine Datei namens named.boot in diesem Verzeichnis.....
Oder handelt es sich hier um ein OBSD-Prob?

Gruß

Leon

Descartes

Re: Bind 9.2.1 und OpenBSD

#2 Post by Descartes »

Sicher dass OpenBSD seine Dateien in /etc bzw. /var/named sucht ? Manche Daemons die du aus den Ports nachinstallieren kannst suchen z.B. ihre Konfigurationsdateien unterhalb von /usr/etc bzw. /usr/local/etc .... könnte beim Bind ja ähnlich sein.

Leon

Re: Bind 9.2.1 und OpenBSD

#3 Post by Leon »

Hallo Descartes,
mh, meinst du so ähnlich wie bei Squid? /usr/local/squid/etc......
Wenn dann höchstens über eine config beim Make-Lauf speziell bei obsd.
Ich habe in einem Howto für einen Caching only Nameserver gesehen das die forwarders in /var/named/namedb/boot.conf eingetragen wurden.
Ich werde die datei backup´pen und mal meine namd.conf in´s directory als boot.conf kopieren!

...werde über den Ausgang kurz bescheid sagen.

Gruß

Leon

Descartes

Re: Bind 9.2.1 und OpenBSD

#4 Post by Descartes »

Lies das Kapitel 6.8 der OpenBSD FAQ:

<a href="http://www.openbsd.org/faq/faq6.html#DNS" target="_blank"><!--auto-->http://www.openbsd.org/faq/faq6.html#DNS</a><!--auto-->

6.8.3 What are the software components of the DNS server?
* named ("name daemon")
* Configuration files in the directory hierarchy under <b>/var/named/</b>

6.8.5 How do I configure DNS?
You configure OpenBSD DNS by editing and/or creating files that control the name daemon named. These files reside by default in the directory /var/named and its subdirectories, especially the file /var/named/named.boot which is the initialization file for named. There are also a couple of other configuration steps to be taken in /etc.

In this document, we will configure the name daemon on nemo.yewtopia.com be the primary nameserver for the (very small!) domain yewtopia.com. The address of nemo.yewtopia.com is 192.168.1.9. Two other machines are on that subnet, crater.yewtopia.com at 192.168.1.1 and earhart.yewtopia.com at 192.168.1.2.

6.8.5.1 Configuration in /var/named
6.8.5.1.1 /var/named/named.boot
6.8.5.1.2 /var/named/namedb/localhost.rev
6.8.5.1.3 /var/named/namedb/yewtopia
6.8.5.1.4 /var/named/namedb/yewtopia.rev

6.8.5.2 Configuration in /etc

6.8.5.2.1 /etc/resolv.conf

Make sure /etc/resolv.conf now points to the domain of local machine (instead of, for example, your ISP's name server) so that name resolution requests actually get sent to the named you have configured!

<a href="http://www.openbsd.org/3.2_packages/i38 ... -long.html" target="_blank"><!--auto-->http://www.openbsd.org/3.2_packages/i38 ... <!--auto-->

Post Reply