1 2010-03-10 Bob Halley <halley@dnspython.org>
3 * The TSIG algorithm value was passed to use_tsig() incorrectly
4 in some cases. Thanks to 'ducciovigolo' for reporting the problem.
6 2010-01-26 Bob Halley <halley@dnspython.org>
8 * (Version 1.8.0 released)
10 2010-01-13 Bob Halley <halley@dnspython.org>
12 * dns/dnssec.py: Added RSASHA256 and RSASHA512 codepoints; added
13 other missing codepoints to _algorithm_by_text.
15 2010-01-12 Bob Halley <halley@dnspython.org>
17 * Escapes in masterfiles now work correctly. Previously they were
18 only working correctly when the text involved was part of a domain
21 * dns/tokenizer.py: The tokenizer's get() method now returns Token
22 objects, not (type, text) tuples.
24 2009-11-13 Bob Halley <halley@dnspython.org>
26 * Support has been added for hmac-sha1, hmac-sha224, hmac-sha256,
27 hmac-sha384 and hmac-sha512. Thanks to Kevin Chen for a
28 thoughtful, high quality patch.
30 * dns/update.py (Update::present): A zero TTL was not added if
31 present() was called with a single rdata, causing _add() to be
32 unhappy. Thanks to Eugene Kim for reporting the problem and
35 * dns/entropy.py: Use os.urandom() if present. Don't seed until
36 someone wants randomness.
38 2009-09-16 Bob Halley <halley@dnspython.org>
40 * dns/entropy.py: The entropy module needs locking in order to be
41 used safely in a multithreaded environment. Thanks to Beda Kosata
42 for reporting the problem.
44 2009-07-27 Bob Halley <halley@dnspython.org>
46 * dns/query.py (xfr): The socket was not set to nonblocking mode.
47 Thanks to Erik Romijn for reporting this problem.
49 2009-07-23 Bob Halley <halley@dnspython.org>
51 * dns/rdtypes/IN/SRV.py (SRV._cmp): SRV records were compared
52 incorrectly due to a cut-and-paste error. Thanks to Tommie
53 Gannert for reporting this bug.
55 * dns/e164.py (query): The resolver parameter was not used.
56 Thanks to MatÃas Bellone for reporting this bug.
58 2009-06-23 Bob Halley <halley@dnspython.org>
60 * dns/entropy.py (EntropyPool.__init__): open /dev/random unbuffered;
61 there's no need to consume more randomness than we need. Thanks
62 to Brian Wellington for the patch.
64 2009-06-19 Bob Halley <halley@dnspython.org>
66 * (Version 1.7.1 released)
68 2009-06-19 Bob Halley <halley@dnspython.org>
70 * DLV.py was omitted from the kit
72 * Negative prerequisites were not handled correctly in _get_section().
74 2009-06-19 Bob Halley <halley@dnspython.org>
76 * (Version 1.7.0 released)
78 2009-06-19 Bob Halley <halley@dnspython.org>
80 * On Windows, the resolver set the domain incorrectly. Thanks
81 to Brandon Carpenter for reporting this bug.
83 * Added a to_digestable() method to rdata classes; it returns the
84 digestable form (i.e. DNSSEC canonical form) of the rdata. For
85 most rdata types this is the same uncompressed wire form. For
86 certain older DNS RR types, however, domain names in the rdata
89 * Added support for the HIP RR type.
91 2009-06-18 Bob Halley <halley@dnspython.org>
93 * Added support for the DLV RR type.
95 * Added various DNSSEC related constants (e.g. algorithm identifiers,
98 * dns/tsig.py: Added support for BADTRUNC result code.
100 * dns/query.py (udp): When checking that addresses are the same,
101 use the binary form of the address in the comparison. This
102 ensures that we don't treat addresses as different if they have
103 equivalent but differing textual representations. E.g. "1:00::1"
104 and "1::1" represent the same address but are not textually equal.
105 Thanks to Kim Davies for reporting this bug.
107 * The resolver's query() method now has an optional 'source' parameter,
108 allowing the source IP address to be specified. Thanks to
109 Alexander Lind for suggesting the change and sending a patch.
111 * Added NSEC3 and NSEC3PARAM support.
113 2009-06-17 Bob Halley <halley@dnspython.org>
115 * Fixed NSEC.to_text(), which was only printing the last window.
116 Thanks to Brian Wellington for finding the problem and fixing it.
118 2009-03-30 Bob Halley <halley@dnspython.org>
120 * dns/query.py (xfr): Allow UDP IXFRs. Use "one_rr_per_rrset" mode when
123 2009-03-30 Bob Halley <halley@dnspython.org>
125 * Add "one_rr_per_rrset" mode switch to methods which parse
126 messages from wire format (e.g. dns.message.from_wire(),
127 dns.query.udp(), dns.query.tcp()). If set, each RR read is
128 placed in its own RRset (instead of being coalesced).
130 2009-03-30 Bob Halley <halley@dnspython.org>
132 * Added EDNS option support.
134 2008-10-16 Bob Halley <halley@dnspython.org>
136 * dns/rdtypes/ANY/DS.py: The from_text() parser for DS RRs did not
137 allow multiple Base64 chunks. Thanks to Rakesh Banka for
138 finding this bug and submitting a patch.
140 2008-10-08 Bob Halley <halley@dnspython.org>
142 * Add entropy module.
144 * When validating TSIGs, we need to use the absolute name.
146 2008-06-03 Bob Halley <halley@dnspython.org>
148 * dns/message.py (Message.set_rcode): The mask used preserved the
149 extended rcode, instead of everything else in ednsflags.
151 * dns/message.py (Message.use_edns): ednsflags was not kept
152 coherent with the specified edns version.
154 2008-02-06 Bob Halley <halley@dnspython.org>
156 * dns/ipv6.py (inet_aton): We could raise an exception other than
157 dns.exception.SyntaxError in some cases.
159 * dns/tsig.py: Raise an exception when the peer has set a non-zero
162 2007-11-25 Bob Halley <halley@dnspython.org>
164 * (Version 1.6.0 released)
166 2007-11-25 Bob Halley <halley@dnspython.org>
168 * dns/query.py (_wait_for): if select() raises an exception due to
169 EINTR, we should just select() again.
171 2007-06-13 Bob Halley <halley@dnspython.org>
173 * dns/inet.py: Added is_multicast().
175 * dns/query.py (udp): If the queried address is a multicast address, then
176 don't check that the address of the response is the same as the address
179 2007-05-24 Bob Halley <halley@dnspython.org>
181 * dns/rdtypes/IN/NAPTR.py: NAPTR comparisons didn't compare the
182 preference field due to a typo.
184 2007-02-07 Bob Halley <halley@dnspython.org>
186 * dns/resolver.py: Integrate code submitted by Paul Marks to
187 determine whether a Windows NIC is enabled. The way dnspython
188 used to do this does not work on Windows Vista.
190 2006-12-10 Bob Halley <halley@dnspython.org>
192 * (Version 1.5.0 released)
194 2006-11-03 Bob Halley <halley@dnspython.org>
196 * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type.
198 2006-11-02 Bob Halley <halley@dnspython.org>
200 * dns/query.py (udp): Messages from unexpected sources can now be
201 ignored by setting ignore_unexpected to True.
203 2006-10-31 Bob Halley <halley@dnspython.org>
205 * dns/query.py (udp): When raising UnexpectedSource, add more
206 detail about what went wrong to the exception.
208 2006-09-22 Bob Halley <halley@dnspython.org>
210 * dns/message.py (Message.use_edns): add reasonable defaults for
211 the ednsflags, payload, and request_payload parameters.
213 * dns/message.py (Message.want_dnssec): add a convenience method for
214 enabling/disabling the "DNSSEC desired" flag in requests.
216 * dns/message.py (make_query): add "use_edns" and "want_dnssec"
219 2006-08-17 Bob Halley <halley@dnspython.org>
221 * dns/resolver.py (Resolver.read_resolv_conf): If /etc/resolv.conf
222 doesn't exist, just use the default resolver configuration (i.e.
223 the same thing we would have used if resolv.conf had existed and
226 2006-07-26 Bob Halley <halley@dnspython.org>
228 * dns/resolver.py (Resolver._config_win32_fromkey): fix
229 cut-and-paste error where we passed the wrong variable to
230 self._config_win32_search(). Thanks to David Arnold for finding
231 the bug and submitting a patch.
233 2006-07-20 Bob Halley <halley@dnspython.org>
235 * dns/resolver.py (Answer): Add more support for the sequence
236 protocol, forwarding requests to the answer object's rrset.
237 E.g. "for a in answer" is equivalent to "for a in answer.rrset",
238 "answer[i]" is equivalent to "answer.rrset[i]", and
239 "answer[i:j]" is equivalent to "answer.rrset[i:j]".
241 2006-07-19 Bob Halley <halley@dnspython.org>
243 * dns/query.py (xfr): Add IXFR support.
245 2006-06-22 Bob Halley <halley@dnspython.org>
247 * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type.
249 2006-06-21 Bob Halley <halley@dnspython.org>
251 * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type.
253 2006-06-02 Bob Halley <halley@dnspython.org>
255 * (Version 1.4.0 released)
257 2006-04-25 Bob Halley <halley@dnspython.org>
259 * dns/rrset.py (RRset.to_rdataset): Added a convenience method
260 to convert an rrset into an rdataset.
262 2006-03-27 Bob Halley <halley@dnspython.org>
264 * Added dns.e164.query(). This function can be used to look for
265 NAPTR RRs for a specified number in several domains, e.g.:
267 dns.e164.query('16505551212',
268 ['e164.dnspython.org.', 'e164.arpa.'])
270 2006-03-26 Bob Halley <halley@dnspython.org>
272 * dns/resolver.py (Resolver.query): The resolver deleted from
273 a list while iterating it, which makes the iterator unhappy.
275 2006-03-17 Bob Halley <halley@dnspython.org>
277 * dns/resolver.py (Resolver.query): The resolver needlessly
278 delayed responses for successful queries.
280 2006-01-18 Bob Halley <halley@dnspython.org>
282 * dns/rdata.py: added a validate() method to the rdata class. If
283 you change an rdata by assigning to its fields, it is a good
284 idea to call validate() when you are done making changes.
285 For example, if 'r' is an MX record and then you execute:
287 r.preference = 100000 # invalid, because > 65535
290 The validation will fail and an exception will be raised.
292 2006-01-11 Bob Halley <halley@dnspython.org>
294 * dns/ttl.py: TTLs are now bounds checked to be within the closed
295 interval [0, 2^31 - 1].
297 * The BIND 8 TTL syntax is now accepted in the SOA refresh, retry,
298 expire, and minimum fields, and in the original_ttl field of
299 SIG and RRSIG records.
301 2006-01-04 Bob Halley <halley@dnspython.org>
303 * dns/resolver.py: The windows registry irritatingly changes the
304 list element delimiter in between ' ' and ',' (and vice-versa)
305 in various versions of windows. We now cope by always looking
306 for either one (' ' first).
308 2005-12-27 Bob Halley <halley@dnspython.org>
310 * dns/e164.py: Added routines to convert between E.164 numbers and
311 their ENUM domain name equivalents.
313 * dns/reversename.py: Added routines to convert between IPv4 and
314 IPv6 addresses and their DNS reverse-map equivalents.
316 2005-12-18 Bob Halley <halley@dnspython.org>
318 * dns/rdtypes/ANY/LOC.py (_tuple_to_float): The sign was lost when
319 converting a tuple into a float, which broke conversions of
320 south latitudes and west longitudes.
322 2005-11-17 Bob Halley <halley@dnspython.org>
324 * dns/zone.py: The 'origin' parameter to from_text() and from_file()
325 is now optional. If not specified, dnspython will use the
326 first $ORIGIN in the text as the zone's origin.
328 * dns/zone.py: Sanity checks of the zone's origin node can now
331 2005-11-12 Bob Halley <halley@dnspython.org>
333 * dns/name.py: Preliminary Unicode support has been added for
334 domain names. Running dns.name.from_text() on a Unicode string
335 will now encode each label using the IDN ACE encoding. The
336 to_unicode() method may be used to convert a dns.name.Name with
337 IDN ACE labels back into a Unicode string. This functionality
338 requires Python 2.3 or greater.
340 2005-10-31 Bob Halley <halley@dnspython.org>
342 * (Version 1.3.5 released)
344 2005-10-12 Bob Halley <halley@dnspython.org>
346 * dns/zone.py: Zone.iterate_rdatasets() and Zone.iterate_rdatas()
347 did not have a default rdtype of dns.rdatatype.ANY as their
348 docstrings said they did. They do now.
350 2005-10-06 Bob Halley <halley@dnspython.org>
352 * dns/name.py: Added the parent() method, which returns the
355 2005-10-01 Bob Halley <halley@dnspython.org>
357 * dns/resolver.py: Added zone_for_name() helper, which returns
358 the name of the zone which contains the specified name.
360 * dns/resolver.py: Added get_default_resolver(), which returns
361 the default resolver, initializing it if necessary.
363 2005-09-29 Bob Halley <halley@dnspython.org>
365 * dns/resolver.py (Resolver._compute_timeout): If time goes
366 backwards a little bit, ignore it.
368 2005-07-31 Bob Halley <halley@dnspython.org>
370 * (Version 1.3.4 released)
372 2005-07-31 Bob Halley <halley@dnspython.org>
374 * dns/message.py (make_response): Trying to respond to a response
375 threw a NameError while trying to throw a FormErr since it used
376 the wrong name for the FormErr exception.
378 * dns/query.py (_connect): We needed to ignore EALREADY too.
380 * dns/query.py: Optional "source" and "source_port" parameters
381 have been added to udp(), tcp(), and xfr(). Thanks to Ralf
382 Weber for suggesting the change and providing a patch.
384 2005-06-05 Bob Halley <halley@dnspython.org>
386 * dns/query.py: The requirement that the "where" parameter be
387 an IPv4 or IPv6 address is now documented.
389 2005-06-04 Bob Halley <halley@dnspython.org>
391 * dns/resolver.py: The resolver now does exponential backoff
392 each time it runs through all of the nameservers.
394 * dns/resolver.py: rcodes which indicate a nameserver is likely
395 to be a "permanent failure" for a query cause the nameserver
396 to be removed from the mix for that query.
398 2005-01-30 Bob Halley <halley@dnspython.org>
400 * (Version 1.3.3 released)
402 2004-10-25 Bob Halley <halley@dnspython.org>
404 * dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
405 incorrectly rejected TXT records where a value was not quoted.
407 2004-10-11 Bob Halley <halley@dnspython.org>
409 * dns/message.py: Added make_response(), which creates a skeletal
410 response for the specified query. Added opcode() and set_opcode()
411 convenience methods to the Message class. Added the request_payload
412 attribute to the Message class.
414 2004-10-10 Bob Halley <halley@dnspython.org>
416 * dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
417 mode incorrectly set zone.origin to the empty name.
419 2004-09-02 Bob Halley <halley@dnspython.org>
421 * dns/name.py (Name.to_wire): The 'file' parameter to
422 Name.to_wire() is now optional; if omitted, the wire form will
423 be returned as the value of the function.
425 2004-08-14 Bob Halley <halley@dnspython.org>
427 * dns/message.py (Message.find_rrset): find_rrset() now uses an
428 index, vastly improving the from_wire() performance of large
429 messages such as zone transfers.
431 2004-08-07 Bob Halley <halley@dnspython.org>
433 * (Version 1.3.2 released)
435 2004-08-04 Bob Halley <halley@dnspython.org>
437 * dns/query.py: sending queries to a nameserver via IPv6 now
440 * dns/inet.py (af_for_address): Add af_for_address(), which looks
441 at a textual-form address and attempts to determine which address
444 * dns/query.py: the default for the 'af' parameter of the udp(),
445 tcp(), and xfr() functions has been changed from AF_INET to None,
446 which causes dns.inet.af_for_address() to be used to determine the
447 address family. If dns.inet.af_for_address() can't figure it out,
448 we fall back to AF_INET and hope for the best.
450 2004-07-31 Bob Halley <halley@dnspython.org>
452 * dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
453 does not allow specifying types by number, so we shouldn't either.
455 * dns/renderer.py: the renderer module didn't import random,
456 causing an exception to be raised if a query id wasn't provided
457 when a Renderer was created.
459 * dns/resolver.py (Resolver.query): the resolver wasn't catching
460 dns.exception.Timeout, so a timeout erroneously caused the whole
461 resolution to fail instead of just going on to the next server.
463 2004-06-16 Bob Halley <halley@dnspython.org>
465 * dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
466 were converted incorrectly if the length of the milliseconds
467 string was less than 3.
469 2004-06-06 Bob Halley <halley@dnspython.org>
471 * (Version 1.3.1 released)
473 2004-05-22 Bob Halley <halley@dnspython.org>
475 * dns/update.py (Update.delete): We erroneously specified a
476 "deleting" value of dns.rdatatype.NONE instead of
477 dns.rdataclass.NONE when the thing being deleted was either an
478 Rdataset instance or an Rdata instance.
480 * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
483 2004-05-14 Bob Halley <halley@dnspython.org>
485 * dns/rdata.py (from_text): The masterfile reader did not
486 accept the unknown RR syntax when used with a known RR type.
488 2004-05-08 Bob Halley <halley@dnspython.org>
490 * dns/name.py (from_text): dns.name.from_text() did not raise
491 an exception if a backslash escape ended prematurely.
493 2004-04-09 Bob Halley <halley@dnspython.org>
495 * dns/zone.py (_MasterReader._rr_line): The masterfile reader
496 erroneously treated lines starting with leading whitespace but
497 not having any RR definition as an error. It now treats
498 them like a blank line (which is not an error).
500 2004-04-01 Bob Halley <halley@dnspython.org>
502 * (Version 1.3.0 released)
504 2004-03-19 Bob Halley <halley@dnspython.org>
506 * Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
508 2004-01-16 Bob Halley <halley@dnspython.org>
510 * dns/query.py (_connect): Windows returns EWOULDBLOCK instead
511 of EINPROGRESS when trying to connect a nonblocking socket.
513 2003-11-13 Bob Halley <halley@dnspython.org>
515 * dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
516 incorrectly, since we were interpreting the values of altitiude,
517 size, hprec, and vprec in meters instead of centimeters.
519 * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
520 encoded with just one octet, not two!
522 2003-11-09 Bob Halley <halley@dnspython.org>
524 * dns/resolver.py (Cache.maybe_clean): The cleaner deleted items
525 from the dictionary while iterating it, causing a RuntimeError
526 to be raised. Thanks to Mark R. Levinson for the bug report,
527 regression test, and fix.
529 2003-11-07 Bob Halley <halley@dnspython.org>
531 * (Version 1.2.0 released)
533 2003-11-03 Bob Halley <halley@dnspython.org>
535 * dns/zone.py (_MasterReader.read): The saved_state now includes
538 2003-11-01 Bob Halley <halley@dnspython.org>
540 * dns/tokenizer.py (Tokenizer.get): The tokenizer didn't
541 handle escaped delimiters.
543 2003-10-27 Bob Halley <halley@dnspython.org>
545 * dns/resolver.py (Resolver.read_resolv_conf): If no nameservers
546 are configured in /etc/resolv.conf, the default nameserver
547 list should be ['127.0.0.1'].
549 2003-09-08 Bob Halley <halley@dnspython.org>
551 * dns/resolver.py (Resolver._config_win32_fromkey): We didn't
552 catch WindowsError, which can happen if a key is not defined
555 2003-09-06 Bob Halley <halley@dnspython.org>
557 * (Version 1.2.0b1 released)
559 2003-09-05 Bob Halley <halley@dnspython.org>
561 * dns/query.py: Timeout support has been overhauled to provide
562 timeouts under Python 2.2 as well as 2.3, and to provide more
565 2003-08-30 Bob Halley <halley@dnspython.org>
567 * dns/zone.py: dns.exception.SyntaxError is raised for unknown
568 master file directives.
570 2003-08-28 Bob Halley <halley@dnspython.org>
572 * dns/zone.py: $INCLUDE processing is now enabled/disabled using
573 the allow_include parameter. The default is to process $INCLUDE
574 for from_file(), and to disallow $INCLUDE for from_text(). The
575 master reader now calls zone.check_origin_node() by default after
576 the zone has been read. find_rdataset() called get_node() instead
577 of find_node(), which result in an incorrect exception. The
578 relativization state of a zone is now remembered and applied
579 consistently when looking up names. from_xfr() now supports
580 relativization like the _MasterReader.
582 2003-08-22 Bob Halley <halley@dnspython.org>
584 * dns/zone.py: The _MasterReader now understands $INCLUDE.
586 2003-08-12 Bob Halley <halley@dnspython.org>
588 * dns/zone.py: The _MasterReader now specifies the file and line
589 number when a syntax error occurs. The BIND 8 TTL format is now
590 understood when loading a zone, though it will never be emitted.
591 The from_file() function didn't pass the zone_factory parameter
594 2003-08-10 Bob Halley <halley@dnspython.org>
596 * (Version 1.1.0 released)
598 2003-08-07 Bob Halley <halley@dnspython.org>
600 * dns/update.py (Update._add): A typo meant that _add would
601 fail if the thing being added was an Rdata object (as
602 opposed to an Rdataset or the textual form of an Rdata).
604 2003-08-05 Bob Halley <halley@dnspython.org>
606 * dns/set.py: the simple Set class has been moved to its
607 own module, and augmented to support more set operations.
609 2003-08-04 Bob Halley <halley@dnspython.org>
611 * Node and all rdata types have been "slotted". This speeds
612 things up a little and reduces memory usage noticeably.
614 2003-08-02 Bob Halley <halley@dnspython.org>
616 * (Version 1.1.0c1 released)
618 2003-08-02 Bob Halley <halley@dnspython.org>
620 * dns/rdataset.py: SimpleSets now support more set options.
622 * dns/message.py: Added the get_rrset() method. from_file() now
623 allows Unicode filenames and turns on universal newline support if
624 it opens the file itself.
626 * dns/node.py: Added the delete_rdataset() and replace_rdataset()
629 * dns/zone.py: Added the delete_node(), delete_rdataset(), and
630 replace_rdataset() methods. from_file() now allows Unicode
631 filenames and turns on universal newline support if it opens the
632 file itself. Added a to_file() method.
634 2003-08-01 Bob Halley <halley@dnspython.org>
636 * dns/opcode.py: Opcode from/to text converters now understand
637 numeric opcodes. The to_text() method will return a numeric opcode
638 string if it doesn't know a text name for the opcode.
640 * dns/message.py: Added set_rcode(). Fixed code where ednsflags
641 wasn't treated as a long.
643 * dns/rcode.py: ednsflags wasn't treated as a long. Rcode from/to
644 text converters now understand numeric rcodes. The to_text()
645 method will return a numeric rcode string if it doesn't know
646 a text name for the rcode.
648 * examples/reverse.py: Added a new example program that builds a
649 reverse (address-to-name) mapping table from the name-to-address
650 mapping specified by A RRs in zone files.
652 * dns/node.py: Added get_rdataset() method.
654 * dns/zone.py: Added get_rdataset() and get_rrset() methods. Added
657 2003-07-31 Bob Halley <halley@dnspython.org>
659 * dns/zone.py: Added the iterate_rdatasets() method which returns
660 a generator which yields (name, rdataset) tuples for all the
661 rdatasets in the zone matching the specified rdatatype.
663 2003-07-30 Bob Halley <halley@dnspython.org>
665 * (Version 1.1.0b2 released)
667 2003-07-30 Bob Halley <halley@dnspython.org>
669 * dns/zone.py: Added find_rrset() and find_rdataset() convenience
670 methods. They let you retrieve rdata with the specified name
671 and type in one call.
673 * dns/node.py: Nodes no longer have names; owner names are
674 associated with nodes in the Zone object's nodes dictionary.
676 * dns/zone.py: Zone objects now implement more of the standard
677 mapping interface. __iter__ has been changed to iterate the keys
678 rather than values to match the standard mapping interface's
681 2003-07-20 Bob Halley <halley@dnspython.org>
683 * dns/ipv6.py (inet_ntoa): Handle embedded IPv4 addresses.
685 2003-07-19 Bob Halley <halley@dnspython.org>
687 * (Version 1.1.0b1 released)
689 2003-07-18 Bob Halley <halley@dnspython.org>
691 * dns/tsig.py: The TSIG validation of TCP streams where not
692 every message is signed now works correctly.
694 * dns/zone.py: Zones can now be compared for equality and
695 inequality. If the other object in the comparison is also
696 a zone, then "the right thing" happens; i.e. the zones are
697 equal iff.: they have the same rdclass, origin, and nodes.
699 2003-07-17 Bob Halley <halley@dnspython.org>
701 * dns/message.py (Message.use_tsig): The method now allows for
702 greater control over the various fields in the generated signature
704 (_WireReader._get_section): UnknownTSIGKey is now raised if an
705 unknown key is encountered, or if a signed message has no keyring.
707 2003-07-16 Bob Halley <halley@dnspython.org>
709 * dns/tokenizer.py (Tokenizer._get_char): get_char and unget_char
710 have been renamed to _get_char and _unget_char since they are not
711 useful to clients of the tokenizer.
713 2003-07-15 Bob Halley <halley@dnspython.org>
715 * dns/zone.py (_MasterReader._rr_line): owner names were being
716 unconditionally relativized; it makes much more sense for them
717 to be relativized according to the relativization setting of
720 2003-07-12 Bob Halley <halley@dnspython.org>
722 * dns/resolver.py (Resolver.read_resolv_conf): The resolv.conf
723 parser did not allow blank / whitespace-only lines, nor did it
724 allow comments. Both are now supported.
726 2003-07-11 Bob Halley <halley@dnspython.org>
728 * dns/name.py (Name.to_digestable): to_digestable() now
729 requires an origin to be specified if the name is relative.
730 It will raise NeedAbsoluteNameOrOrigin if the name is
731 relative and there is either no origin or the origin is
733 (Name.split): returned the wrong answer if depth was 0 or depth
734 was the length of the name. split() now does bounds checking
735 on depth, and raises ValueError if depth < 0 or depth > the length
738 2003-07-10 Bob Halley <halley@dnspython.org>
740 * dns/ipv6.py (inet_ntoa): The routine now minimizes its output
741 strings. E.g. the IPv6 address
742 "0000:0000:0000:0000:0000:0000:0000:0001" is minimized to "::1".
743 We do not, however, make any effort to display embedded IPv4
744 addresses in the dot-quad notation.
746 2003-07-09 Bob Halley <halley@dnspython.org>
748 * dns/inet.py: We now supply our own AF_INET and AF_INET6
749 constants since AF_INET6 may not always be available. If the
750 socket module has AF_INET6, we will use it. If not, we will
751 use our own value for the constant.
753 * dns/query.py: the functions now take an optional af argument
754 specifying the address family to use when creating the socket.
756 * dns/rdatatype.py (is_metatype): a typo caused the function
757 return true only for type OPT.
759 * dns/message.py: message section list elements are now RRsets
760 instead of Nodes. This API change makes processing messages
761 easier for many applications.
763 2003-07-07 Bob Halley <halley@dnspython.org>
765 * dns/rrset.py: added. An RRset is a named rdataset.
767 * dns/rdataset.py (Rdataset.__eq__): rdatasets may now be compared
768 for equality and inequality with other objects. Rdataset instance
769 variables are now slotted.
771 * dns/message.py: The wire format and text format readers are now
772 classes. Variables related to reader state have been moved out
773 of the message class.
775 2003-07-06 Bob Halley <halley@dnspython.org>
777 * dns/name.py (from_text): '@' was not interpreted as the empty
780 * dns/zone.py: the master file reader derelativized names in rdata
781 relative to the zone's origin, not relative to the current origin.
782 The reader now deals with relativization in two steps. The rdata
783 is read and derelativized using the current origin. The rdata's
784 relativity is then chosen using the zone origin and the relativize
785 boolean. Here's an example.
791 If the zone origin is example., and relativization is on, then
792 This fragment will become:
794 bar.foo.example. 300 IN MX 0 blaz.foo.example.
796 after the first step (derelativization to current origin), and
798 bar.foo 300 IN MX 0 blaz.foo
800 after the second step (relativiation to zone origin).
802 * dns/namedict.py: added.
804 * dns/zone.py: The master file reader has been made into its
805 own class. Reader-related instance variables have been moved
806 form the zone class into the reader class.
808 * dns/zone.py: Add node_factory class attribute. An application
809 can now subclass Zone and Node and have a zone whose nodes are of
810 the subclassed Node type. The from_text(), from_file(), and
811 from_xfr() algorithms now take an optional zone_factory argument.
812 This allows the algorithms to be used to create zones whose class
813 is a subclass of Zone.
816 2003-07-04 Bob Halley <halley@dnspython.org>
818 * dns/renderer.py: added new wire format rendering module and
819 converted message.py to use it. Applications which want
820 fine-grained control over the conversion to wire format may call
821 the renderer directy, instead of having it called on their behalf
824 2003-07-02 Bob Halley <halley@dnspython.org>
826 * dns/name.py (_validate_labels): The NameTooLong test was
829 * dns/message.py (Message.to_wire): dns.exception.TooBig is
830 now raised if the wire encoding exceeds the specified
833 2003-07-01 Bob Halley <halley@dnspython.org>
835 * dns/message.py: EDNS encoding was broken. from_text()
836 didn't parse rcodes, flags, or eflags correctly. Comparing
837 messages with other types of objects didn't work.
839 2003-06-30 Bob Halley <halley@dnspython.org>
841 * (Version 1.0.0 released)
843 2003-06-30 Bob Halley <halley@dnspython.org>
845 * dns/rdata.py: Rdatas now implement rich comparisons instead of
848 * dns/name.py: Names now implement rich comparisons instead of
851 * dns/inet.py (inet_ntop): Always use our code, since the code
852 in the socket module doesn't support AF_INET6 conversions if
853 IPv6 sockets are not available on the system.
855 * dns/resolver.py (Answer.__init__): A dangling CNAME chain was
856 not raising NoAnswer.
858 * Added a simple resolver Cache class.
860 * Added an expiration attribute to answer instances.
862 2003-06-24 Bob Halley <halley@dnspython.org>
864 * (Version 1.0.0b3 released)
866 2003-06-24 Bob Halley <halley@dnspython.org>
868 * Renamed module "DNS" to "dns" to avoid conflicting with
871 2003-06-23 Bob Halley <halley@dnspython.org>
873 * The from_text() relativization controls now work the same way as
874 the to_text() controls.
876 * DNS/rdata.py: The parsing of generic rdata was broken.
878 2003-06-21 Bob Halley <halley@dnspython.org>
880 * (Version 1.0.0b2 released)
882 2003-06-21 Bob Halley <halley@dnspython.org>
884 * The Python 2.2 socket.inet_aton() doesn't seem to like
885 '255.255.255.255'. We work around this.
887 * Fixed bugs in rdata to_wire() and from_wire() routines of a few
888 types. These bugs were discovered by running the tests/zone.py
891 * Added implementation of type APL.
893 2003-06-20 Bob Halley <halley@dnspython.org>
895 * DNS/rdtypes/IN/AAAA.py: Use our own versions of inet_ntop and
896 inet_pton if the socket module doesn't provide them for us.
898 * The resolver now does a better job handling exceptions. In
899 particular, it no longer eats all exceptions; rather it handles
900 those exceptions it understands, and leaves the rest uncaught.
902 * Exceptions have been pulled into their own module. Almost all
903 exceptions raised by the code are now subclasses of
904 DNS.exception.DNSException. All form errors are subclasses of
905 DNS.exception.FormError (which is itself a subclass of
906 DNS.exception.DNSException).
908 2003-06-19 Bob Halley <halley@dnspython.org>
910 * Added implementations of types DS, NXT, SIG, and WKS.
912 * __cmp__ for type A and AAAA could produce incorrect results.
914 2003-06-18 Bob Halley <halley@dnspython.org>
916 * Started test suites for zone.py and tokenizer.py.
918 * Added implementation of type KEY.
920 * DNS/rdata.py(_base64ify): \n could be emitted erroneously.
922 * DNS/rdtypes/ANY/SOA.py (SOA.from_text): The SOA RNAME field could
923 be set to the value of MNAME in common cases.
925 * DNS/rdtypes/ANY/X25.py: __init__ was broken.
927 * DNS/zone.py (from_text): $TTL handling erroneously caused the
928 next line to be eaten.
930 * DNS/tokenizer.py (Tokenizer.get): parsing was broken for empty
931 quoted strings. Quoted strings didn't handle \ddd escapes. Such
932 escapes are appear not to comply with RFC 1035, but BIND allows
933 them and they seem useful, so we allow them too.
935 * DNS/rdtypes/ANY/ISDN.py (ISDN.from_text): parsing was
936 broken for ISDN RRs without subaddresses.
938 * DNS/zone.py (from_file): from_file() didn't work because
939 some required parameters were not passed to from_text().
941 2003-06-17 Bob Halley <halley@dnspython.org>
943 * (Version 1.0.0b1 released)
945 2003-06-17 Bob Halley <halley@dnspython.org>
947 * Added implementation of type PX.
949 2003-06-16 Bob Halley <halley@dnspython.org>
951 * Added implementation of types CERT, GPOS, LOC, NSAP, NSAP-PTR.
953 * DNS/rdatatype.py (_by_value): A cut-and-paste error had broken
956 2003-06-12 Bob Halley <halley@dnspython.org>
958 * Created a tests directory and started adding tests.
960 * Added "and its documentation" to the permission grant in the
963 2003-06-12 Bob Halley <halley@dnspython.org>
965 * DNS/name.py (Name.is_wild): is_wild() erroneously raised IndexError
966 if the name was empty.
968 2003-06-10 Bob Halley <halley@dnspython.org>
970 * Added implementations of types AFSDB, X25, and ISDN.
972 * The documentation associated with the various rdata types has been
973 improved. In particular, instance variables are now described.
975 2003-06-09 Bob Halley <halley@dnspython.org>
977 * Added implementations of types HINFO, RP, and RT.
979 * DNS/message.py (make_query): Document that make_query() sets
980 flags to DNS.flags.RD, and chooses a random query id.
982 2003-06-05 Bob Halley <halley@dnspython.org>
984 * (Version 1.0.0a2 released)
986 2003-06-05 Bob Halley <halley@dnspython.org>
988 * DNS/node.py: removed __getitem__ and __setitem__, since
989 they are not used by the codebase and were not useful in
992 * DNS/message.py (from_file): from_file() now allows a
993 filename to be specified instead of a file object.
995 * DNS/rdataset.py: The is_compatible() method of the
996 DNS.rdataset.Rdataset class was deleted.
998 2003-06-04 Bob Halley <halley@dnspython.org>
1000 * DNS/name.py (class Name): Names are now immutable.
1002 * DNS/name.py: the is_comparable() method has been removed, since
1003 names are always comparable.
1005 * DNS/resolver.py (Resolver.query): A query could run for up
1006 to the lifetime + the timeout. This has been corrected and the
1007 query will now only run up to the lifetime.
1009 2003-06-03 Bob Halley <halley@dnspython.org>
1011 * DNS/resolver.py: removed the 'new' function since it is not the
1012 style of the library to have such a function. Call
1013 DNS.resolver.Resolver() to make a new resolver.
1015 2003-06-03 Bob Halley <halley@dnspython.org>
1017 * DNS/resolver.py (Resolver._config_win32_fromkey): The DhcpServer
1018 list is space separated, not comma separated.
1020 2003-06-03 Bob Halley <halley@dnspython.org>
1022 * DNS/update.py: Added an update module to make generating updates
1025 2003-06-03 Bob Halley <halley@dnspython.org>
1027 * Commas were missing in some of the __all__ entries in various
1030 2003-05-30 Bob Halley <halley@dnspython.org>
1032 * (Version 1.0.0a1 released)