I have a lan here at home with 3 computers on it:

mach1.log.cabin = 192.168.1.40
mach2.log.cabin = 192.168.1.41 and 192.168.2.1
mach3.log.cabin = 192.168.2.2

(mach2 serves as a router between the two LANs so that I don't need a
hub. :)  mach1 is a gateway to the 'Net and runs named.

Running the host command on any machine to lookup any other works
with no delay.  E.g.,

[ben@mach1 ben]$ host mach3

However, running

[ben@mach1 ben]$ dig mach3

delays for a while and returns

; <<>> DiG 9.1.0 <<>> mach3
;; global options:  printcmd
;; connection timed out; no servers could be reached

But specifying "dig mach3.log.cabin" returns immediately with the DNS
RR's.  This is true when running dig on any machine, looking up any
other (on the local net).

It's especially annoying because telnet and ssh take a long time to
connect unless you give them the FQDN.  Another odd thing is that the
problem disappears when I'm connected to my ISP.  Does anyone have any
idea what's going on?  Any help would be greatly appreciated.  I've
attached the relavant files as opposed to including them in the
message due to the number of them.  Also, /etc/resolv.conf,
/etc/hosts, and /etc/host.conf look pretty much the same on all
machines, so I've only included them from mach1.  Keep in mind that
the problem exists on mach1, too. (And it's running the nameserver!)

Thanks,
Ben

-- 
Ben Logan: ben at wblogan dot net
OpenPGP Key KeyID: A1ADD1F0
// 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.
         */
        //forward first;
        //forwarders { 208.139.151.10; 208.139.144.2; };    
        // 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 { none; };
};

zone "0.0.127.in-addr.arpa" IN {
        type master;
        file "named.local";
        allow-update { none; };
};
zone "log.cabin" IN {
        type master;
        file "cabin.zone";
        allow-update { none; };
};
zone "168.192.in-addr.arpa" IN {
        type master;
        file "named.cabin";
        allow-update { none; };
};
order hosts,bind
@       1D      IN      SOA     mach1.log.cabin.        root.mach1.log.cabin.   (
                                2001121000              ; serial
                                3H                      ; refresh
                                15M                     ; retry
                                1W                      ; expiry
                                1D )                    ; minimum
        1D      IN      NS      mach1.log.cabin.
mach1   1D      IN      A       192.168.1.40
mach2   1D      IN      A       192.168.1.41
mach3   1D      IN      A       192.168.2.2
newcreature 1D  IN      CNAME   mach1
cyclist 1D      IN      CNAME   mach1
ldp     1D      IN      CNAME   mach1
php     1D      IN      CNAME   mach1
apache  1D      IN      CNAME   mach1
css     1D      IN      CNAME   mach1
html    1D      IN      CNAME   mach1
wxpython 1D     IN      CNAME   mach1
wx      1D      IN      CNAME   mach1
python  1D      IN      CNAME   mach1
mysql   1D      IN      CNAME   mach1
xml     1D      IN      CNAME   mach1
cvs     1D      IN      CNAME   mach1
rute    1D      IN      CNAME   mach1
wlogan  1D      IN      CNAME   mach1
wblogan 1D      IN      CNAME   mach1
bash    1D      IN      CNAME   mach1
lfs     1D      IN      CNAME   mach1
linuxfromscratch 1D IN  CNAME   mach1
maxrpm  1D      IN      CNAME   mach1
python2 1D      IN      CNAME   mach1
liec    1D      IN      CNAME   mach1
jargon  1D      IN      CNAME   mach1
becky   1D      IN      CNAME   mach1
jake    1D      IN      CNAME   mach1
jhlogan 1D      IN      CNAME   mach1
docbook 1D      IN      CNAME   mach1
povray  1D      IN      CNAME   mach1
pov     1D      IN      CNAME   mach1
ben     1D      IN      CNAME   mach1
$TTL    86400
$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
;       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
$TTL    86400
@       IN      SOA     mach1.log.cabin.        root.mach1.log.cabin.   (
                                2001121000      ; Serial
                                28800           ; Refresh
                                14400           ; Retry
                                3600000         ; Expire
                                86400 )         ; Minimum
        IN      NS      mach1.log.cabin.
40.1    IN      PTR     mach1.log.cabin.
41.1    IN      PTR     mach2.log.cabin.
2.2     IN      PTR     mach3.log.cabin.
$TTL    86400
@       IN      SOA     localhost. root.localhost.  (
                                      1997022700 ; Serial
                                      28800      ; Refresh
                                      14400      ; Retry
                                      3600000    ; Expire
                                      86400 )    ; Minimum
              IN      NS      localhost.

1       IN      PTR     localhost.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost.localdomain   localhost
#192.168.1.40   mach1.log.cabin mach1
#192.168.1.41   mach2.log.cabin mach2
#192.168.2.2    mach3.log.cabin mach3
domain log.cabin
nameserver 192.168.1.40

Reply via email to