ich würde gerne ein paar Rechner und VMs im DNS auch rückwärts auflösbar machen. Im Einsatz ist der Bind unter Squeeze. Problem scheint zu sein, dass sie in unterschiedlichen Subnetzen liegen. Ich versuche das mal mit example.org und dem 10.1.0.0/16-er Netz nachzukonstruieren:
Ausschnitt, /etc/bind/named.conf.local:
Code: Alles auswählen
zone "vm.example.org." {
type master;
file "/var/cache/bind/db.vm.example.org";
};
zone "1.10.in-addr.arpa." in {
type master;
file "/var/cache/bind/db.ptr.vm.example.org";
};
/etc/bind/db.vm.example.org
Code: Alles auswählen
$ORIGIN vm.example.org.
$TTL 21600
@ IN SOA ns1.vm.example.org. root.ns1.vm.example.org. (
1 ; Serial
3600 ; Refresh
180 ; Retry
604800 ; Expire
3600 ) ; Negative Cache TTL
NS ns1.vm.example.org.
A 10.1.1.1
;
test0 A 10.1.1.1
test1 A 10.1.2.1
Code: Alles auswählen
$TTL 21600 ; 6 hours
$ORIGIN 1.10.IN-ADDR.ARPA.
@ IN SOA ns1.vm.example.org. root.ns1.vm.example.org. (
69 ; serial
3600 ; refresh (1 hour)
180 ; retry (3 minutes)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS ns1.vm.example.org.
; erstes Subnetz
.1.1 PTR test0.vm.example.org.
; zweites Subnetz
.1.2 PTR test1.vm.example.org.
Code: Alles auswählen
zone 1.10.in-addr.arpa/IN: loading from master file /var/cache/bind/db.ptr.vm.example.org failed: empty label
Für jedes Subnetz einen eigenen $ORIGIN? Ohne Punkt? vims syntax highlighting macht es rot und im syslog steht
Code: Alles auswählen
/var/cache/bind/db.ptr.example.org:14: ignoring out-of-zone data (1.2.1.10.in-addr.arpa)
Gruß Cae