dig lookup different from system lookup

Posted by simao on Super User See other posts from Super User or by simao
Published on 2010-11-28T19:58:38Z Indexed on 2011/01/14 19:55 UTC
Read the original article Hit count: 293

Filed under:
|
|

Hello,

I am running dd-wrt and I configured it's dns server to resolve a few hosts inside my network.

When I use dig to lookup these hosts, they are resolved OK, but when I try to ping those hosts I always receive an unknown host error message.

For example:

obe:~ simao$ dig dd-wrt
; <<>> DiG 9.6.0-APPLE-P2 <<>> dd-wrt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44026
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;dd-wrt.                IN  A

;; ANSWER SECTION:
dd-wrt.         0   IN  A   192.168.1.1

But then:

obe:~ simao$ ping dd-wrt
ping: cannot resolve dd-wrt: Unknown host

Any ideas?

Thanks.

© Super User or respective owner

Related posts about networking

Related posts about dns