Bind 8 - No default server

Hubert Schmid HSchmid at t-online.de
Wed May 2 19:33:50 UTC 2001


My former mail did not contain the attachments mentioned, further I have to
explain

1. I have two network cards installed, but only the first one is active,
fixed to IP address 192.168.1.20,
the second one is not connected and left idling to DHCP.

2. I am using the standard hint file from suse linux 7.1 (a lot of internet
DNS servers not reachable)

3. to repeat my problem:

Have installed bind on a linux server. Only Intranet, range 192.168.1.xxx,
server is 192.168.1.20. If i use nslookup, i cannot find the dns-server, but
nslookup localhost 127.0.0.1 works, something is missing, but what ? No
external network is accessible, only intranet.

linux:/var/named # nslookup
*** Can't find server name for address 192.168.1.20: Server failed
*** Default servers are not available


Starting sequence in /var/log/messages
May  2 10:12:28 linux named[2802]: starting (/etc/named.conf).  named
8.2.3-T9B
Fri Jan 19 09:43:33 GMT 2001
^Iroot at kneser:/usr/src/packages/BUILD/bind8-8.2.3/bin/named
May  2 10:12:28 linux named[2802]: master zone "schmid.de" (IN) loaded
(serial 20010429)
May  2 10:12:28 linux named[2802]: master zone "1.168.192.in-addr-arpa" (IN)
loaded (serial 20010502)
May  2 10:12:28 linux named[2802]: master zone "0.0.127.in-addr.arpa" (IN)
loaded (serial 42)
May  2 10:12:28 linux named[2802]: master zone "localhost" (IN) loaded
(serial 42)
May  2 10:12:28 linux named[2802]: hint zone "" (IN) loaded (serial 0)
May  2 10:12:28 linux named[2802]: listening on [127.0.0.1].53 (lo)
May  2 10:12:28 linux named[2802]: listening on [192.168.1.20].53 (eth0)
May  2 10:12:28 linux named[2802]: Forwarding source address is
[0.0.0.0].1038
May  2 10:12:28 linux named[2803]: group = named
May  2 10:12:28 linux named[2803]: user = named
May  2 10:12:28 linux named[2803]: Ready to answer queries.
May  2 10:12:28 linux named[2803]: sysquery: sendto([198.32.64.12].53):
Network is unreachable


dig returns

linux:~ # dig @127.0.0.1 -x 192.168.1.20

; <<>> DiG 8.3 <<>> @127.0.0.1 -x
; (1 server found)
;; res options: init recurs defnam dnsrch
;; res_nsend to server 127.0.0.1: Connection refused
linux:~ #

--------------------------------------------------------------
zonefile : 1.168.192.zone
--------------------------------------------------------------
$ORIGIN 1.168.192.in-addr.arpa.

@   IN SOA schmid.de. root.schmid.de. (
     23  ; serial (d. adams)
     3H  ; refresh
     15M  ; retry
     1W  ; expiry
     1D )  ; minimum

   IN NS linux.schmid.de.
20   IN PTR linux.schmid.de.
3   IN PTR w2000.schmid.de.
10   IN PTR nt4300.schmid.de.
2   IN PTR redhat.schmid.de.

-----------------------------------------------------------------
zonefile 127.0.0.zone
-----------------------------------------------------------------
$ORIGIN 0.0.127.in-addr.arpa.

@   IN SOA schmid.de. root.schmid.de. (
     42  ; serial (d. adams)
     3H  ; refresh
     15M  ; retry
     1W  ; expiry
     1D )  ; minimum

   IN NS schmid.de.
1   IN PTR localhost.
------------------------------------------------------------------
zonefile schmid.de.zone
----------------------------------------------------------------------------
------------------------
 -$TTL 1D
$ORIGIN schmid.de.
@   IN SOA linux root (
     20010429 ; serial (d. adams)
     3H  ; refresh
     3600  ; retry
     1W  ; expiry
     1D )  ; minimum

   IN NS  linux.schmid.de.
   IN MX 0  linux

linux   IN A  192.168.1.20
www   IN CNAME linux
www2   IN CNAME linux
mail   IN CNAME linux
ns   IN CNAME linux
ftp   IN CNAME linux
localhost  IN A  127.0.0.1
w2000   IN A  192.168.1.3
nt4300   IN A  192.168.1.10
redhat   IN A  192.168.1.2
-------------------------------------------------------------------
zonefile localhost.zone
-------------------------------------------------------------------
$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

 ------------------------------------------------------------------
#
# /etc/resolv.conf
#
domain schmid.de
nameserver 192.168.1.20
search schmid.de
------------------------------------------------------------------
/* configuration file for BIND 8.1 or later
 * should be installed as /etc/named.conf
 *
 * Author: Hubert Schmid
 */

#
# overall options of the server
#
options {
 directory "/var/named";
 # the default is to fail, if the master file is not correct
 check-names master warn;

 allow-query {127.0/16; 192.168.1/24; };

};

#
# do not be verbose about these problems...
#
logging {
# category default { null; };
 category lame-servers { null; };
# category cname { null; };
};


#
# a master zone
#

zone "schmid.de" {
        type master;
        file "schmid.de.zone";
};

zone "1.168.192.in-addr-arpa" {
        type master;
        file "1.168.192.zone";
};

zone "0.0.127.in-addr.arpa" IN {
 type master;
 file "127.0.0.zone";
};

zone "localhost" in {
 type master;
 file "localhost.zone";
};


zone "." IN {
        type hint;
        file "root.hint";
};








More information about the bind-users mailing list