Bind Configureren
Geplaatst: 08 nov 2005, 19:56
Aan de mede-Ubers met enige kennis van dns configuratie. Na mijn werkende dns configuratie vermoost te hebben door ddns te proberen toepassen onder debian; heb ik volgend probleem:
Ik heb bind terug op een nieuwe debian onder Microsoft Virtual PC geïnstalleerd zodat ik van scratch kan starten (vertrouw vorige versie niet meer). Ik heb volgende configuratiefiles aangepast/aangemaakt:
De rest van de files staan default, dit geldt onder meer voor named.conf & named.conf.options. De standaard zonefiles (bv localhost) heb ik ook niet aangepast. De /var/log/syslog geeft volgende messages weer bij een restart van bind9:
Het concrete probleem: zowel forward als reverse lookup queries werken niet (door middel van "nslookup").
Na een volle dag zoeken ben ik het beu, ziet iemand een fout? Ik ben noob tot het hele handmatig dns instellen + linux dus ik waardeer alle hulp. Alvast bedankt.
Ik heb bind terug op een nieuwe debian onder Microsoft Virtual PC geïnstalleerd zodat ik van scratch kan starten (vertrouw vorige versie niet meer). Ik heb volgende configuratiefiles aangepast/aangemaakt:
Code: Selecteer alles
-----------------
/etc/network/interfaces
-----------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.6.1
netmask 255.255.255.0
auto eth2
iface eth2 inet static
address 192.168.6.2
netmask 255.255.255.0
-----------------
/etc/bind/named.conf.local
-----------------
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
zone "pih.local"{
type master;
file "/etc/bind/db.pih.local";
};
zone "6.168.192.in-addr.arpa"{
type master;
file "/etc/bind/db.6.168.192";
};
------------
/etc/bind/db.6.168.192
------------
; BIND reverse data file for empty rfc1918 zone
$TTL 3D
@ IN SOA ns1.pih.local. bguy.pih.local. (
2005111527 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
NS ns1.pih.local.
NS ns2.pih.local.
1 PTR ns1.pih.local.
2 PTR ns2.pih.local.
------------
/etc/bind/db.pih.local
------------
; BIND reverse data file for empty rfc1918 zone
;
; Reverse lookup zone
;
$TTL 3D
@ IN SOA ns1.pih.local. bguy.pih.local.(
2005111527 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
NS ns1.pih.local.
NS ns2.pih.local.
ns1 IN A 192.168.6.1
ns2 IN A 192.168.6.2
localhost IN A 127.0.0.1
Vermeldenswaardig is dat eth0 onder virtual pc op een fysieke netwerkkaart loopt, terwijl eth1 & 2 beiden op dezelfde windows loopback adapter lopen. (Ingesteld in de Virtual PC settings)Nov 8 20:03:20 localhost named[2187]: shutting down: flushing changes
Nov 8 20:03:20 localhost named[2187]: stopping command channel on 127.0.0.1#953
Nov 8 20:03:20 localhost named[2187]: stopping command channel on ::1#953
Nov 8 20:03:20 localhost named[2187]: no longer listening on 127.0.0.1#53
Nov 8 20:03:20 localhost named[2187]: no longer listening on 192.168.1.50#53
Nov 8 20:03:20 localhost named[2187]: no longer listening on 192.168.6.1#53
Nov 8 20:03:20 localhost named[2187]: no longer listening on 192.168.6.2#53
Nov 8 20:03:20 localhost named[2187]: exiting
Nov 8 20:03:22 localhost named[2221]: starting BIND 9.2.4 -u bind
Nov 8 20:03:22 localhost named[2221]: using 1 CPU
Nov 8 20:03:22 localhost named[2221]: loading configuration from '/etc/bind/named.conf'
Nov 8 20:03:22 localhost named[2221]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 8 20:03:22 localhost named[2221]: listening on IPv4 interface eth0, 192.168.1.50#53
Nov 8 20:03:22 localhost named[2221]: listening on IPv4 interface eth1, 192.168.6.1#53
Nov 8 20:03:22 localhost named[2221]: listening on IPv4 interface eth2, 192.168.6.2#53
Nov 8 20:03:22 localhost named[2221]: command channel listening on 127.0.0.1#953
Nov 8 20:03:22 localhost named[2221]: command channel listening on ::1#953
Nov 8 20:03:22 localhost named[2221]: zone 0.in-addr.arpa/IN: loaded serial 1
Nov 8 20:03:22 localhost named[2221]: zone 127.in-addr.arpa/IN: loaded serial 1
Nov 8 20:03:22 localhost named[2221]: zone 6.168.192.in-addr.arpa/IN: loaded serial 2005111527
Nov 8 20:03:22 localhost named[2221]: zone 255.in-addr.arpa/IN: loaded serial 1
Nov 8 20:03:22 localhost named[2221]: zone pih.local/IN: loaded serial 2005111527
Nov 8 20:03:22 localhost named[2221]: zone localhost/IN: loaded serial 1
Nov 8 20:03:22 localhost named[2221]: running
Nov 8 20:03:22 localhost named[2221]: zone 6.168.192.in-addr.arpa/IN: sending notifies (serial 2005111527)
Nov 8 20:03:22 localhost named[2221]: zone pih.local/IN: sending notifies (serial 2005111527)
Nov 8 20:03:22 localhost named[2221]: received notify for zone '6.168.192.in-addr.arpa'
Nov 8 20:03:22 localhost named[2221]: received notify for zone 'pih.local'
Het concrete probleem: zowel forward als reverse lookup queries werken niet (door middel van "nslookup").
Als total noob heb ik even naar tooltjes voor zelfdiagnose gezocht, en vond "nslint". Diagnose van de dns-files gaf geen enkele fout.> ns1.pih.local.
Server: 192.168.1.1
Address: 192.168.1.1#53
** server can't find ns1.pih.local: NXDOMAIN
Na een volle dag zoeken ben ik het beu, ziet iemand een fout? Ik ben noob tot het hele handmatig dns instellen + linux dus ik waardeer alle hulp. Alvast bedankt.