Hi All... I could really use some help on this one. I'm not a linux newbie, but I just can't get DNS to work on my FC1 box. If anyone out there has set up a DNS server with Fedora, I'd really appreciate the help. Here's some cut/pastes of my conf files, for reference:
[root@localhost named]# rpm -qa | grep bind
bind-9.2.2.P3-9
ypbind-1.12-3
bind-chroot-9.2.2.P3-9
bind-utils-9.2.2.P3-9
#####/etc/named.conf#####
options {
directory "/var/named";
};
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "thesweethog.home" IN {
type master;
file "thesweethog.home.zone";
allow-update { localhost; };
};
zone "0.168.192.in-addr.arpa" IN {
type master;
file "192.168.0.rev";
allow-update { localhost; };
};
include "/etc/rndc.key";
#########################
#####/var/named/localhost.zone#####
$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
1 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
############################
###########/var/named/named.local##############
$TTL 86400
@ IN SOA localhost. root.localhost. (
1 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
#########################################
#####/var/named/thesweethog.home.zone#####
$ORIGIN .
$TTL 3600 ; 1 hour
thesweethog.home IN SOA lassie.thesweethog.home. kalle.lassie.thesweethog.home (
1 ; serial
21600 ; refresh (6 hours)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
3600 ; minimum (1 hour)
)
NS lassie.thesweethog.home
A 192.168.0.101
$ORIGIN thesweethog.home.
; Static Addresses
$TTL 259200 ; 3 Days
desktop A 192.168.0.100
lassie A 192.168.0.101
########################
######/var/named/192.168.0.rev##############
$ORIGIN .
$TTL 3600 ; 1 hour
0.168.192.in-addr.arpa IN SOA kalle.lassie.thesweethog.home. lassie.thesweethog.home. (
1 ; serial
3600 ; refresh (1 hour)
900 ; retry (15 minutes)
3600000 ; expire (5 weeks 6 days 16 hours)
3600 ; minimum (1 hour)
)
NS lassie.thesweethog.home.
$ORIGIN 0.168.192.in-addr.arpa.
1 PTR desktop.thesweethog.com.
2 PTR lassie.thesweethog.home.
######################################
#####/etc/resolv.conf#####
domain thesweethog.home
search thesweethog.home
#nameserver 127.0.0.1
nameserver 192.168.0.101
#######################
So, what I'd really like to be able to do is have the server (lassie) resolve itself, but that's not happening. Can anyone clue me in? I think I'm missing something really simple.
[root@localhost named]# dig -x 192.168.0.101
; <<>> DiG 9.2.2-P3 <<>> -x 192.168.0.101
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 22733
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;101.0.168.192.in-addr.arpa. IN PTR
;; AUTHORITY SECTION:
168.192.in-addr.arpa. 10800 IN SOA xbru.br.ns.els-gms.att.net. rm-hostmaster.ems.att.com. 1 1800 900 604800 604800
;; Query time: 672 msec
;; SERVER: 192.168.0.101#53(192.168.0.101)
;; WHEN: Tue Apr 6 22:10:01 2004
;; MSG SIZE rcvd: 131
[root@localhost named]# host lassie
Host lassie not found: 3(NXDOMAIN)
[root@localhost named]# host lassie.thesweethog.home
Host lassie.thesweethog.home not found: 3(NXDOMAIN)


