Bug 1141535 - DNS Packet header AD flag erroneously set in DNSSEC query
Summary: DNS Packet header AD flag erroneously set in DNSSEC query
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Net-DNS
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Wouters
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-14 13:10 UTC by Dick Franks
Modified: 2015-05-20 14:07 UTC (History)
2 users (show)

Fixed In Version: perl-Net-DNS-0.80-1.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-05-20 14:07:11 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dick Franks 2014-09-14 13:10:33 UTC
Description of problem:

Net::DNS::Resolver configured with (dnssec => 1) emits query with both DO and AD flags set, contrary to RFC6840, 5.7

Version-Release number of selected component (if applicable):

0.79 and earlier

How reproducible:

100%

Steps to Reproduce:
1.

use Net::DNS::SEC;       # although bug is in Net::DNS

$resolver = new Net::DNS::Resolver( dnssec => 1 );

$query = new Net::DNS::Packet( 'example.com' );

$reply = $resolver->send( $query );

$query->header->print;

__END__


2.
3.

Actual results:

;;      id = 36886
;;      qr = 0  aa = 0  tc = 0  rd = 1  opcode = QUERY
;;      ra = 0  z  = 0  ad = 1  cd = 0  rcode  = NOERROR
;;      qdcount = 1     ancount = 0     nscount = 0     arcount = 1
;;      do = 1
;; EDNS version 0
;;      flags:  8000
;;      rcode:  NOERROR
;;      size:   2048
;;      option: 


Expected results:

;;      id = 36886
;;      qr = 0  aa = 0  tc = 0  rd = 1  opcode = QUERY
;;      ra = 0  z  = 0  ad = 0  cd = 0  rcode  = NOERROR
;;      qdcount = 1     ancount = 0     nscount = 0     arcount = 1
;;      do = 1
;; EDNS version 0
;;      flags:  8000
;;      rcode:  NOERROR
;;      size:   2048
;;      option: 


Additional info:

Fixed upstream in 0.80 (release imminent)

Comment 1 Dick Franks 2014-09-15 16:38:50 UTC
Upstream release date: 22 Sep 2014

Comment 2 Petr Šabata 2014-09-16 09:32:04 UTC
Thank you for the heads-up, Dick.

Comment 3 Petr Šabata 2014-09-22 17:01:06 UTC
Unexpectedly built by Paul again, reassigning.

Comment 4 Dick Franks 2014-09-22 18:24:30 UTC
Petr, Paul,

I am impressed by this level of service!

Thanks


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