no servers could be reached

Michael McNally mcnally at isc.org
Thu Jul 28 19:46:49 UTC 2011


On 7/28/11 12:16 AM, uifiddle at gmail.com wrote:
> my /etc/resolve.conf

Note:     ^^^^^^^
>
> named-checkzone named-checkconf passed, I suppose the configure works
> but only get no servers could be reached.What's wrong with my config?

Your resolv.conf is in the wrong place.  Let's see what happens when
that occurs:

With resolv.conf in place:

> Chickamin-River:~ $ dig www.isc.org
>
> ; <<>> DiG 9.6.0-APPLE-P2 <<>> www.isc.org
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5913
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;www.isc.org.			IN	A
>
> ;; ANSWER SECTION:
> www.isc.org.		263	IN	A	149.20.64.42
>
> ;; Query time: 49 msec
> ;; SERVER: 8.8.8.8#53(8.8.8.8)
> ;; WHEN: Thu Jul 28 11:42:34 2011
> ;; MSG SIZE  rcvd: 45


With resolv.conf in the wrong place:


> Chickamin-River:~ $ mv /etc/resolv.conf /etc/resolv.conf.moved
> Chickamin-River:~ $ dig www.isc.org
>
> ; <<>> DiG 9.6.0-APPLE-P2 <<>> www.isc.org
> ;; global options: +cmd
> ;; connection timed out; no servers could be reached



More information about the bind-users mailing list