no servers could be reached
Gregory Hicks
ghicks at cadence.com
Thu Jun 16 02:05:19 UTC 2005
> To: comp-protocols-dns-bind at isc.org
> From: Ian <db5 at hermes.net.au>
> Subject: Re: no servers could be reached
> Date: Thu, 16 Jun 2005 22:06:43 +1000
>
> Dear Experts
>
> /dev/rob0 replied to my mess, but yes, it was too messy. I'll try
again.
>
> The object is to have a name server for my home network. Dig -x
127.0.0.1
> is successful. Dig <hostname> is not. After days of this, that and
> tearing my hair out I have no idea why. Please help. Relevant files
> follow, including output from named-checkzone.
>
> Regards
>
> Ian Dudley-Bestow.
>
> *******start*******
> Slackware 9.1
> Kernel 2.4.22 (home made)
> P III.
> *******end*******
>
>
> *******start*******
> dig -x 127.0.0.1
>
> ; <<>> DiG 9.2.2-P3 <<>> -x 127.0.0.1
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19019
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL:
1
>
> ;; QUESTION SECTION:
> ;1.0.0.127.in-addr.arpa. IN PTR
>
> ;; ANSWER SECTION:
> 1.0.0.127.in-addr.arpa. 86400 IN PTR localhost.
>
> ;; AUTHORITY SECTION:
> 0.0.127.in-addr.arpa. 86400 IN NS localhost.
>
> ;; ADDITIONAL SECTION:
> localhost. 86400 IN A 127.0.0.1
>
> ;; Query time: 163 msec
> ;; SERVER: 203.62.159.2#53(203.62.159.2)
> ;; WHEN: Thu Jun 16 21:48:37 2005
> ;; MSG SIZE rcvd: 93
> *******end*******
>
>
> *******start*******
> dig garage
>
> ; <<>> DiG 9.2.2-P3 <<>> garage
> ;; global options: printcmd
> ;; connection timed out; no servers could be reached
> *******end*******
>
>
> *******start*******
> root at house:/var/named/caching-example# cat /etc/named.conf
> options {
> directory "/var/named";
>
> // Uncommenting this might help if you have to go through a
> // firewall and things are not working out. But you probably
> // need to talk to your firewall admin.
>
> // query-source port 53;
> };
>
> controls {
> inet 127.0.0.1 allow { localhost; } keys { rndc_key; };
> };
>
> key "rndc_key" {
> algorithm hmac-md5;
> secret
> "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
> };
>
> zone "." IN {
> type hint;
> file "caching-example/named.ca";
> };
>
> zone "localhost" IN {
> type master;
> file "caching-example/localhost.zone";
> allow-update { none; };
> };
>
> zone "0.0.127.in-addr.arpa" IN {
> type master;
> file "caching-example/named.local";
> allow-update { none; };
> };
> *******end*******
>
> *******start*******
> root at house:/var/named/caching-example# named-checkzone localhost
> localhost.zone
> zone localhost/IN: loaded serial 2005061401
> OK
> *******end*******
>
>
> *******start*******
> root at house:/var/named/caching-example# named-checkzone localhost
named.local
> zone localhost/IN: loaded serial 2005061401
> OK
> *******end*******
>
>
> *******start*******
> /var/log/messages
> Jun 16 21:32:44 house named[99]: starting BIND 9.2.2-P3
> Jun 16 21:32:44 house named[99]: using 1 CPU
> Jun 16 21:32:44 house named[99]: loading configuration from '/etc
> named.conf'
> Jun 16 21:32:44 house named[99]: no IPv6 interfaces found
> Jun 16 21:32:44 house named[99]: listening on IPv4 interface lo,
> 127.0.0.1#53
> Jun 16 21:32:44 house named[99]: listening on IPv4 interface eth0,
> 192.168.1.1#53
> Jun 16 21:32:45 house named[99]: command channel listening on
127.0.0.1#953
> Jun 16 21:32:45 house named[99]: zone 0.0.127.in-addr.arpa/IN: loaded
serial
> 2005061401
> Jun 16 21:32:45 house named[99]: zone localhost/IN: loaded serial
2005061401
> Jun 16 21:32:45 house named[99]: running
> Jun 16 21:32:45 house named[99]: zone localhost/IN: sending notifies
(serial
> 2005061401)
> Jun 16 21:32:45 house named[99]: zone 0.0.127.in-addr.arpa/IN: sending
> notifies (serial 2005061401)
> *******end*******
>
>
> *******start*******
> root at house:/var/named/caching-example# cat named.local
> $TTL 3D
> @ IN SOA localhost. hostmaster.localhost. (
> 2005061401 ; Serial
> 8H ; Refresh
> 2H ; Retry
> 4W ; Expire
> 1D) ; Minimum TTL
> NS localhost.
> 1 PTR localhost.
> *******end*******
>
>
> *******start*******
> root at house:/var/named/caching-example# cat localhost.zone
> $TTL 3D
> @ IN SOA localhost. hostmaster.localhost. (
> 2005061401 ; serial, todays date +
todays
> serial #
> 8H ; refresh, seconds
> 2H ; retry, seconds
> 4W ; expire, seconds
> 1D ) ; minimum, seconds
> ;
> NS ns ; Inet Address of name server
You need to have an A record for the machine "ns"
ns IN A 127.0.0.1
> localhost A 127.0.0.1
> garage A 192.168.1.9
> shed A 192.168.1.10
> *******end*******
>
>
---------------------------------------------------------------------
Gregory Hicks | Principal Systems Engineer
Cadence Design Systems | Direct: 408.576.3609
555 River Oaks Pkwy M/S 6B1 | Fax: 408.894.3479
San Jose, CA 95134 | Internet: ghicks at cadence.com
I am perfectly capable of learning from my mistakes. I will surely
learn a great deal today.
"A democracy is a sheep and two wolves deciding on what to have for
lunch. Freedom is a well armed sheep contesting the results of the
decision." - Benjamin Franklin
"The best we can hope for concerning the people at large is that they
be properly armed." --Alexander Hamilton
More information about the bind-users
mailing list