I'm at a loss to why my reverse lookup zone doesn't work for me. Could anybody see what I've done wrong?
I've got two views. One internal and one external. My domain is isp2.datornatverk.se. Public IP: 130.240.133.81.
dig -x @8.8.8.8 130.240.133.81
gives me:
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 2917
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
I've set it up so that the internal subnets gets the domains resolved to the internal IP-addresses. When querying from external addresses I will get public IP.
My named.conf.local file:
Code:
acl internals {
127.0.0.0/8;
10.0.0.0/8;
192.168.0.0/16;
172.16.0.0/12;
};
view "internal" {
match-clients { internals; };
recursion yes;
allow-recursion { internals; };
zone "isp2.datornatverk.se" {
allow-transfer { none; };
type master;
file "/etc/bind/db.internal.isp2.datornatverk.se";
};
};
view "external" {
match-clients { any; };
recursion no;
zone "isp2.datornatverk.se" {
allow-transfer { none; };
type master;
file "/etc/bind/db.isp2.datornatverk.se";
};
zone "133.240.130.in-addr.arpa" {
type master;
notify no;
file "/etc/bind/db.130";
};
};
db.130 file:
Code:
;
; BIND reverse data file for local loopback interface
;
$TTL 604800
@ IN SOA ns1.isp2.datornatverk.se. root.isp2.datornatverk.se. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
IN NS ns1.isp2.datornatverk.se.
81 IN PTR ns1.isp2.datornatverk.se.
81 IN PTR mail.isp2.datornatverk.se.
I don't know whether the views has messed something up. It worked before I added the views.
Bookmarks