I'm installing BIND for the first time and I've got the mappings all right except for the reverse lookup on my LAN zone. I've got my localhost zone and reverse zone working, and my LAN zone working, just not the reverse LAN so i can't resolve 10.1.1.80. Here are my named.conf, lanzone.db and reverselan.db. O yah, i'm running BIND 9.1.3.
named.conf
acl "mynet" { 10.1.1.0/0; };
options {
directory "/etc/namedb"; // Working directory
pid-file "named.pid"; // Put PID file in Working Directory
allow-query { "mynet"; };
};
//Root server hints
zone "." { type hint; file "root.hints"; };
//Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
type master;
file "localhost.rev";
notify no;
};
// Provide a master mapping for mycompany.com
zone "mycompany.com" {
type master;
file "mycompany.com.db";
};
// Provide a reverse lookup for 10.1.1.x
zone "1.1.10.in-addr.arpa" {
type master;
file "mycompany.com.rev";
notify no;
};
controls {
inet 127.0.0.1 allow { localhost; } keys { i_am_the_rndc_key; };
};
key "i_am_the_rndc_key" {
algorithm hmac-md5;
secret "1VWCENnSNboehxteT2vhlQ==";
};
mycompany.com.db
$TTL 38400
@ IN SOA myserver admin.mycompany.com (
2000010201 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400) ; Minimum TTL
IN NS mycompany.com
www.mycompany.com. IN A 10.1.1.80
mycompany.com.rev the broken one?
$TTL 3D
@ IN SOA myserver admin.mycompany.com (
201 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS mycompany.com.
80. IN PTR www.mycompany.com.
incase you can't tell, i want 10.1.1.80 to point to
www.mycompany.com, I've got
www.mycompany.com to point to 10.1.1.80, just need the reverse now.