Need help diagnosing my simple setup.
Alex Waltrip
alexwaltrip at home.com
Sat Feb 24 00:50:55 UTC 2001
Hello,
I was wondering if anyone can look at my named.conf and zone files
below, along with the attached "dig" responses and perhaps tell me why
my reverse lookups don't work. Please search on BAD to find the dig
responses that bother me. Many responses contain no ANSWER section and
some of them make it look like dig is finding the addresses on the
internet instead of on my local network (looks that way to me anyway,
but what do I know).
I'm running Redhat 7.0 and bind 8.2.3.1. After I get named working
I want to run dhcp-3.0b2pl16 and have it update the dns dynamically.
Please note that the named.conf and zone files are the best I could
figure out from the docs and the DNS mini-howto. They are literally a
best guess so if you don't understand why something is as it is then
well, unfortunately, I probably don't either.
My simple setup. I have only 2 machines on my network,
topdog.gibberish.net (Linux RH7.0) and midget.gibberish.net (Win98). I
have only one ethernet card on topdog, which is the machine that hosts
the dns.
I want the 2 machines to be able to find each other and I want them to
find the router I use to get to my cable modem network (internet). The
router is an SMC Barricade router, a router that when you plug your
machine's cables into it's ports it acts like a firewall and a print
server and a dhcp server. I eventually want to disable the dhcp server
so I can run dhcp-3.0b2pl16 which hopefully will update my named dns. I
want the machines on the local network to only have addresses from
192.168.123.100 - 192.168.123.199.
Again, my dns host is topdog, my domain name is gibberish.net. The
other machine on my 2 machine network is named midget.
I've put the DIG (dig is some dns tool analogous to nslookup from what
I've read) responses first and the cat'd files at the end. Hope this
helps.
Thanks in Advance.
Alex Waltrip.
dig -x 127.0.0.1
; <<>> DiG 8.3 <<>> -x
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 4
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUERY SECTION:
;; 1.0.0.127.in-addr.arpa, type = ANY, class = IN
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 1D IN PTR localhost.
;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. 1D IN NS localhost.
;; ADDITIONAL SECTION:
localhost. 1D IN A 127.0.0.1
;; Total query time: 14 msec
;; FROM: topdog.gibberish.net to SERVER: default -- 24.10.132.178
;; WHEN: Fri Feb 23 17:26:04 2001
;; MSG SIZE sent: 40 rcvd: 93
----------------------------------------------------------------------
BAD Note: It appears that it's finding my domain on internet
nameservers, is there another
gibberish.net on the internet?
dig any gibberish.net +pfmin
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1785
;; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2
;; QUERY SECTION:
;; gibberish.net, type = ANY, class = IN
;; ANSWER SECTION:
gibberish.net. 9h7m33s IN NS DNS.FISC.COM.
gibberish.net. 9h7m33s IN NS SPEAKEASY.EARTHLINK.net.
-----------------------------------------------------------------------
BAD gibberish.net is my local domain. Note: no ANSWER section
dig gibberish.net axfr
; <<>> DiG 8.3 <<>> gibberish.net axfr
;; Received 0 answers (0 records).
;; FROM: topdog.gibberish.net to SERVER: 24.10.132.178
;; WHEN: Fri Feb 23 17:27:11 2001
;; Received 0 answers (0 records).
;; FROM: topdog.gibberish.net to SERVER: 24.10.132.180
;; WHEN: Fri Feb 23 17:27:11 2001
-----------------------------------------------------------------------
BAD gw.gibberish.net is an A address to my cable modem router. Note: no
ANSWER section
dig gw.gibberish.net +pfmin
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 22921
;; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;; gw.gibberish.net, type = A, class = IN
------------------------------------------------------------------------
BAD 192.168.123.122 is topdog's ip address. Note: no ANSWER section
dig -x 192.168.123.122 +pfmin
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 62850
;; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUERY SECTION:
;; 122.123.168.192.in-addr.arpa, type = ANY, class = IN
------------------------------------------------------------------------
BAD Note: no ANSWER section.
dig -x 192.168.123 AXFR
; <<>> DiG 8.3 <<>> -x AXFR
;; Received 0 answers (0 records).
;; FROM: topdog.gibberish.net to SERVER: 24.10.132.178
;; WHEN: Fri Feb 23 17:40:32 2001
;; Received 0 answers (0 records).
;; FROM: topdog.gibberish.net to SERVER: 24.10.132.180
;; WHEN: Fri Feb 23 17:40:32 2001
-------------------------------------------------------------------------
FILES
filename: /etc/hosts:
127.0.0.1 localhost.localdomain localhost
192.168.123.120 topdog.gibberish.net topdog
192.168.123.132 midget.gibberish.net midget
----------------------------------------------------------------------
filename: output from ifconfig:
eth0 Link encap:Ethernet HWaddr 00:50:04:6D:DE:86
inet addr:192.168.123.122 Bcast:192.168.123.255
Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:2327 errors:0 dropped:0 overruns:0 frame:0
TX packets:1823 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xa000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
----------------------------------------------------------------------
filename: /etc/resolv.conf:
domain gibberish.net
search C3922-A.lakwood3.co.home.com gibberish.net
nameserver 24.10.132.178
nameserver 24.10.132.180
----------------------------------------------------------------------
filename: /etc/named.conf:
// generated by named-bootconf.pl
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
//
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { localhost; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { localhost; };
};
zone "gibberish.net" IN {
type master;
file "gibberish.net.zone";
allow-update { localhost; };
};
zone "123.168.192.in-addr.arpa" IN {
type master;
file "192.168.123.local";
allow-update { localhost; };
};
----------------------------------------------------------------------
Zone files:
filename: /var/named/192.168.123.local
$TTL 3D
@ IN SOA topdog.gibberish.net.
root.topdog.gibberish.net. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS topdog.gibberish.net.
1 IN PTR gw.gibberish.net.
2 IN PTR topdog.gibberish.net.
3 IN PTR midget.gibberish.net.
4 IN PTR mail.gibberish.net.
5 IN PTR ftp.gibberish.net.
----------------------------------------------------------------------
filename: /var/named/gibberish.net.zone
;
; Zone file for gibberish.net
;
; The full zone file
;
$TTL 3D
@ IN SOA topdog.gibberish.net. root.gibberish.net. (
200102221 ; serial, todays date + todays
serial #
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
;
TXT "gibberish.net, your DNS consultants"
NS topdog ; Inet Address of name server
MX 10 mail ; Primary Mail Exchanger
localhost A 127.0.0.1
gw A 192.168.123.254
HINFO "186" "USSW"
TXT "The router"
topdog A 192.168.123.120
MX 10 mail
HINFO "Athlon" "Linux 2.2.16-22"
midget A 192.168.123.132
HINFO "AMD-K2" "Win98"
mail A 192.168.123.120
HINFO "Athlon" "Linux 2.2.16-22"
ftp A 192.168.123.120
HINFO "Athlon" "Linux 2.2.16-22"
;
-------------------------------------------------------------------------
filename: /var/named/localhost.zone
$TTL 3D
$ORIGIN localhost.
@ 1D IN SOA @ root (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
1D IN NS @
1D IN A 127.0.0.1
----------------------------------------------------------------------------
filename: /var/named/named.ca
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services (NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Aug 22, 1997
; related version of root zone: 1997082200
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; temporarily housed at ISI (IANA)
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
; End of File
-------------------------------------------------------------------------
filename: /var/named/named.local
$TTL 3D
@ IN SOA localhost. root.localhost. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
-------------------------------------------------------------------------
More information about the bind-users
mailing list