Internal DNS resolution look up fails
Bit Twister
BitTwister at mouse-potato.com
Mon Dec 31 16:37:46 UTC 2007
First time DNS newbie here. After 11 hours of howto/documents/template
reading and attempts, I still can not resolve my node's name or ip.
$ hostname
wb.home.invalid
$ host wb.home.invalid
Host wb.home.invalid not found: 2(SERVFAIL)
$ host 192.168.1.130
Host 130.1.168.192.in-addr.arpa not found: 2(SERVFAIL)
Does that mean I have to create separate files for each ip on my LAN?
Thought my zone "1.168.192.in-addr.arpa" would keep me out of that
ditch. :-(
Clean install of bind on Mandriva Linux 2008
$ named -v
BIND 9.4.1-P1
$ grep hosts: /etc/nsswitch.conf
hosts: files dns nis
$ grep nameserver /etc/resolv.conf
nameserver 192.168.1.130
$ head -5 /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.1.11 fw.home.invalid fw
192.168.1.12 wb1.home.invalid wb1
192.168.1.130 wb.home.invalid wb
192.168.1.131 beta.home.invalid beta
Snippet from named.conf
zone "home.invalid" IN {
type master;
file "reverse/home.zone";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "reverse/home.reversed";
allow-update { none; };
};
$ cat /var/lib/named/var/named/reverse/home.zone
$ORIGIN .
$TTL 86400 ; 1 day
home.invalid IN SOA wb.home.invalid. (
1997022700 ; serial
86400 ; refresh (1 day)
21600 ; retry (6 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 hour)
)
NS wb.home.invalid.
$ORIGIN home.invalid.
$TTL 86400 ; 1 day
localhost A 127.0.0.1
fw A 192.168.1.11
wb1 A 192.168.1.12
wb A 192.168.1.130
beta A 192.168.1.131
$ cat /var/lib/named/var/named/reverse/home.reversed
$ORIGIN .
$TTL 86400 ; 1 day
1.168.192.in-addr.arpa IN SOA wb.home.invalid. (
1997022700 ; serial
28800 ; refresh (8 hours)
14400 ; retry (4 hours)
3600000 ; expire (5 weeks 6 days 16 hours)
86400 ; minimum (1 day)
)
NS wb.home.invalid.
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 3600 ; 1 hour
11 PTR fw.home.invalid.
12 PTR wb1.home.invalid.
130 PTR wb.home.invalid.
131 PTR beta.home.invalid.
More information about the bind-users
mailing list