Skip Menu |

This queue is for tickets about the Net-DNS CPAN distribution.

Report information
The Basics
Id: 71935
Status: rejected
Priority: 0/
Queue: Net-DNS

People
Owner: Nobody in particular
Requestors: perl-cpan [...] richardharman.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.66
Fixed in: (no value)



Subject: RFE: permit RCODEs >= 15
According to RFC 6195, RCODEs 3841-4095 are "reserved for private use" (which I'd like to use), but Net::DNS restricts the RCODE value to between 0 and 15. Plus, there's another 5 RFCs that have RCODE values Show quoted text
>=16, so this should help line up with the standard.
Any chance the this line in Net::DNS::Header's parse subroutine could be relaxed? my $rval = $b3 & 0xf;
From: rwfranks [...] acm.org
On Tue Oct 25 21:24:10 2011, RHARMAN wrote: Show quoted text
> > Any chance the this line in Net::DNS::Header's parse subroutine could be > relaxed?
None. The size of the RCODE field in DNS packet headers is defined in RFC1035 4.1.1 to be exactly four bits. The RCODE values > 15 to which you refer are stored using the EDNS OPT record defined in RFC2671. The "private use" values are allocated for use by protocol developers and NOT for casual use by end users. --Dick
Hi RHARMAN, Dick said it all. The rcode in the header is just 4 bits. Rejecting ticket. -- Willem
Whoops, mea culpa for reading summaries of the RFC instead of the actual RFC. Thanks for the clarification.