BIND 10 #2579: limit max value of RRTTL on construction (?)

BIND 10 Development do-not-reply at isc.org
Thu Dec 20 02:44:27 UTC 2012


#2579: limit max value of RRTTL on construction (?)
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:  UnAssigned
  jinmei                             |                Status:  new
                       Type:  task   |             Milestone:  New Tasks
                   Priority:         |              Keywords:
  medium                             |             Sensitive:  0
                  Component:         |           Sub-Project:  DNS
  libdns++                           |  Estimated Difficulty:  meta
               CVSS Scoring:         |           Total Hours:  0
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 See http://bind10.isc.org/ticket/2429#comment:11

 RFC2181 limits the max value of TTL to `2^31-1`.  We might want to
 enforce this restriction at the time of the construction of `RRTTL`
 object.

 There are some obvious advantages of this, but I think the decision
 is not that obvious:
 - Limiting it at the API level is not compatible with BIND 9.
 - It's not clear what we should do when an out-of-range (but still
   within uint32_t) value is specified.  Silently reset it to 0?
   (this may result in some surprise).  Or throw an exception?  (but
   it's probably not good for the "from wire" case, where RFC specifies
   treating it as 0).

 So this ticket is created basically for the record, rather than
 proposing a specific task.  If we see the stronger need to address
 this topic, we can discuss it and create a development ticket.

-- 
Ticket URL: <http://bind10.isc.org/ticket/2579>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list