Bug 1067856 - unbound won't answer DNS queries for forged domains
Summary: unbound won't answer DNS queries for forged domains
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: unbound
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pavel Šimerda (pavlix)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-21 08:37 UTC by Pavel Šimerda (pavlix)
Modified: 2014-06-06 17:57 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-06 17:57:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Pavel Šimerda (pavlix) 2014-02-21 08:37:31 UTC
When a local application queries Unbound for a domain that is secured by DNSSEC and the answer from the forwarder fails validation, I would expect Unbound to reply with an error. Instead it doesn't reply at all and the application times out.


$ time dig www.rhybar.cz

; <<>> DiG 9.9.3-P2 <<>> www.rhybar.cz
;; global options: +cmd
;; connection timed out; no servers could be reached

real    0m15.024s
user    0m0.000s
sys     0m0.000s


The www.rhybar.cz is a testing domain run by CZ.NIC that can be used for checking the client side behavior when the answers fail DNSSEC validation.

We need to check the RFCs for correct behavior. But a timeout doesn't seem to be a nice solution for local applications and for users.

Comment 1 Tomáš Hozza 2014-02-21 08:58:52 UTC
From what I tested BIND-9.9.4 returns SERVFAIL for the same domain, since
its RRSIG is intentionally wrong.

Comment 2 Paul Wouters 2014-02-21 15:52:39 UTC
I can't reproduce that:

paul@bofh:~$ sudo systemctl restart unbound.service 
paul@bofh:~$ time dig www.rhybar.cz @localhost

; <<>> DiG 9.9.3-rl.13207.22-P2-RedHat-9.9.3-14.P2.fc19 <<>> www.rhybar.cz @localhost
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 10229
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;www.rhybar.cz.			IN	A

;; Query time: 992 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Fri Feb 21 10:16:41 EST 2014
;; MSG SIZE  rcvd: 42


real	0m1.008s
user	0m0.014s
sys	0m0.002s

Comment 3 Pavel Šimerda (pavlix) 2014-03-19 10:26:49 UTC
OK, moved upstream with more details about tested version:

https://www.nlnetlabs.nl/bugs-script/show_bug.cgi?id=566

Comment 4 Pavel Šimerda (pavlix) 2014-06-06 17:15:23 UTC
I would like to track this upstream change getting into Fedora 20.

Comment 5 Pavel Šimerda (pavlix) 2014-06-06 17:57:42 UTC
I'm afraid this is not the bug report I wanted to work with.


Note You need to log in before you can comment on or make changes to this bug.