no servers could be reached

Ian db5 at hermes.net.au
Mon Jun 13 17:28:57 UTC 2005


Dear Experts

The object is to have a name server for my home network. =A0Dig -x 127.0.=
0.1
is successful. =A0Dig <hostname> is not. =A0After days of this, that and
tearing my hair out I have *no* idea why. =A0Please help. =A0Relevant fil=
es
follow.

Regards

Ian Dudley-Bestow.


Slackware 9.1
Kernel 2.4.22 (home made)
P III.

dig -x 127.0.0.1
; <<>> DiG 9.2.2-P3 <<>> -x 127.0.0.1
;; global options: =A0printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 31744
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0IN =A0 =A0 =A0PTR

;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 259200 =A0IN =A0 =A0 =A0PTR =A0 =A0 localhost.

;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. =A0 259200 =A0IN =A0 =A0 =A0NS =A0 =A0 =A0ns.fogwat=
ch.com.au.

;; Query time: 4 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Jun 14 02:46:56 2005
;; MSG SIZE =A0rcvd: 95

root at house:/var/named/caching-example# dig garage

; <<>> DiG 9.2.2-P3 <<>> garage
;; global options: =A0printcmd
;; connection timed out; no servers could be reached


/var/log/messages=20
Jun 14 02:32:38 house named[1130]: starting BIND 9.2.2-P3
Jun 14 02:32:38 house named[1130]: using 1 CPU
Jun 14 02:32:38 house named[1130]: loading configuration from '/etc
named.conf'
Jun 14 02:32:38 house named[1130]: no IPv6 interfaces found
Jun 14 02:32:38 house named[1130]: listening on IPv4 interface lo,
127.0.0.1#53
Jun 14 02:32:38 house named[1130]: listening on IPv4 interface eth0,
192.168.1.1#53
Jun 14 02:32:38 house named[1130]: command channel listening on
127.0.0.1#953
Jun 14 02:32:38 house named[1130]: zone 0.0.127.in-addr.arpa/IN: loaded
serial 1
Jun 14 02:32:38 house named[1130]: running
Jun 14 02:32:38 house named[1130]: zone 0.0.127.in-addr.arpa/IN: sending
notifies (serial 1)

/etc/named.conf
options {
=A0=A0=A0=A0=A0=A0=A0=A0directory "/var/named";

};

controls {
=A0=A0=A0=A0=A0=A0=A0=A0inet 127.0.0.1 allow { localhost; } keys { rndc_k=
ey; };
};

key "rndc_key" {
=A0=A0=A0=A0=A0=A0=A0=A0algorithm hmac-md5;
=A0=A0=A0=A0=A0=A0=A0=A0secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};

zone "." IN {
=A0 =A0 =A0 =A0 type hint;
=A0 =A0 =A0 =A0 file "caching-example/named.ca";
};

zone "localhost" IN {
=A0 =A0 =A0 =A0 type master;
=A0 =A0 =A0 =A0 file "caching-example/localhost.zone";
=A0 =A0 =A0 =A0 allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
=A0 =A0 =A0 =A0 type master;
=A0 =A0 =A0 =A0 file "caching-example/named.local";
=A0 =A0 =A0 =A0 allow-update { none; };
};

/etc/rndc.conf
key rndc_key {
=A0 =A0 =A0 =A0 algorithm "hmac-md5";
=A0 =A0 =A0 =A0 secret
"c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
};

options {
=A0 =A0 =A0 =A0 default-server localhost;
=A0 =A0 =A0 =A0 default-key =A0 =A0rndc_key;
=A0 =A0 =A0 =A0 };

/var/named/caching-example/localhost.zone
$TTL 3D
@ =A0 =A0 =A0 IN =A0 =A0 =A0SOA =A0 =A0 ns.linux.bogus. hostmaster.linux.=
bogus. (
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 199802151 =A0 =A0 =A0 ; s=
erial, todays date + todays
serial #
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 8H =A0 =A0 =A0 =A0 =A0 =A0=
 =A0; refresh, seconds
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2H =A0 =A0 =A0 =A0 =A0 =A0=
 =A0; retry, seconds
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 4W =A0 =A0 =A0 =A0 =A0 =A0=
 =A0; expire, seconds
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1D ) =A0 =A0 =A0 =A0 =A0 =
=A0; minimum, seconds
;
NS =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ns =A0 =A0 =A0 =A0 =A0 =A0 =
=A0; Inet Address of name server
MX =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A010 mail.fogwatch.com.au ; P=
rimary Mail Exchanger
;
localhost =A0 =A0 =A0 A =A0 =A0 =A0 127.0.0.1
garage =A0 =A0 =A0 =A0 =A0A =A0 =A0 =A0 192.168.1.9
shed =A0 =A0 =A0 =A0 =A0 =A0A =A0 =A0 =A0 192.168.1.10

/var/named/caching-example/named.local
$TTL 3D
@ =A0 =A0 =A0 =A0 =A0 =A0 =A0 IN =A0 =A0 =A0SOA =A0 =A0 fogwatch.com.au. =
hostmaster.fogwatch.com.au.
(
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1 =A0 =A0 =A0 ; Serial
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 8H =A0 =A0 =A0; Refresh
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 2H =A0 =A0 =A0; Retry
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 4W =A0 =A0 =A0; Expire
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 1D) =A0 =A0 ; Minimum TTL
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 NS =A0 =A0 =A0ns.fogwatch=
.com.au.
1 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PTR =A0 =A0 localhost.



More information about the bind-users mailing list