Maintained by: NLnet Labs

[Unbound-users] Unexpected results - Unbound results don't match external DNS

Carsten Strotmann
Sun Jul 27 15:45:04 CEST 2014


Hello Patrick,

pcl-associates writes:

> Hi,
>
> I don't know if I'm expecting too much from unbound but for certain
> lookups I get a different result from unbound than I get from an
> external DNS server.  For example:

Unbound is all good here, you're expecting too much from
"nslookup". Unbound returns the correct answers, but "nslookup" fails to
ask the wanted questions to Unbound (and does not show the DNS
queries). 

Please try to use the tools "dig" or "drill" to send the query to
Unbound, the output will either give you a clue or, if posted here, will
give the participants of this mailing list an idea what might be wrong.

Example (using my local Unbound instance):

% dig 158.24.39.46.zen.spamhaus.org. 

; <<>> DiG 9.10.0-P1 <<>> 158.24.39.46.zen.spamhaus.org.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42320
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;158.24.39.46.zen.spamhaus.org. IN      A

;; ANSWER SECTION:
158.24.39.46.zen.spamhaus.org. 900 IN   A       127.0.0.11
158.24.39.46.zen.spamhaus.org. 900 IN   A       127.0.0.4

;; Query time: 205 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Sun Jul 27 15:43:37 CEST 2014
;; MSG SIZE  rcvd: 90

-- 
Carsten Strotmann
Email: cas at strotmann.de
Blog: strotmann.de