1 2010-01-13 Bob Halley <halley@dnspython.org>
3 * dns/dnssec.py: Added RSASHA256 and RSASHA512 codepoints; added
4 other missing codepoints to _algorithm_by_text.
6 2010-01-12 Bob Halley <halley@dnspython.org>
8 * Escapes in masterfiles now work correctly. Previously they were
9 only working correctly when the text involved was part of a domain
12 * dns/tokenizer.py: The tokenizer's get() method now returns Token
13 objects, not (type, text) tuples.
15 2009-11-13 Bob Halley <halley@dnspython.org>
17 * Support has been added for hmac-sha1, hmac-sha224, hmac-sha256,
18 hmac-sha384 and hmac-sha512. Thanks to Kevin Chen for a
19 thoughtful, high quality patch.
21 * dns/update.py (Update::present): A zero TTL was not added if
22 present() was called with a single rdata, causing _add() to be
23 unhappy. Thanks to Eugene Kim for reporting the problem and
26 * dns/entropy.py: Use os.urandom() if present. Don't seed until
27 someone wants randomness.
29 2009-09-16 Bob Halley <halley@dnspython.org>
31 * dns/entropy.py: The entropy module needs locking in order to be
32 used safely in a multithreaded environment. Thanks to Beda Kosata
33 for reporting the problem.
35 2009-07-27 Bob Halley <halley@dnspython.org>
37 * dns/query.py (xfr): The socket was not set to nonblocking mode.
38 Thanks to Erik Romijn for reporting this problem.
40 2009-07-23 Bob Halley <halley@dnspython.org>
42 * dns/rdtypes/IN/SRV.py (SRV._cmp): SRV records were compared
43 incorrectly due to a cut-and-paste error. Thanks to Tommie
44 Gannert for reporting this bug.
46 * dns/e164.py (query): The resolver parameter was not used.
47 Thanks to MatÃas Bellone for reporting this bug.
49 2009-06-23 Bob Halley <halley@dnspython.org>
51 * dns/entropy.py (EntropyPool.__init__): open /dev/random unbuffered;
52 there's no need to consume more randomness than we need. Thanks
53 to Brian Wellington for the patch.
55 2009-06-19 Bob Halley <halley@dnspython.org>
57 * (Version 1.7.1 released)
59 2009-06-19 Bob Halley <halley@dnspython.org>
61 * DLV.py was omitted from the kit
63 * Negative prerequisites were not handled correctly in _get_section().
65 2009-06-19 Bob Halley <halley@dnspython.org>
67 * (Version 1.7.0 released)
69 2009-06-19 Bob Halley <halley@dnspython.org>
71 * On Windows, the resolver set the domain incorrectly. Thanks
72 to Brandon Carpenter for reporting this bug.
74 * Added a to_digestable() method to rdata classes; it returns the
75 digestable form (i.e. DNSSEC canonical form) of the rdata. For
76 most rdata types this is the same uncompressed wire form. For
77 certain older DNS RR types, however, domain names in the rdata
80 * Added support for the HIP RR type.
82 2009-06-18 Bob Halley <halley@dnspython.org>
84 * Added support for the DLV RR type.
86 * Added various DNSSEC related constants (e.g. algorithm identifiers,
89 * dns/tsig.py: Added support for BADTRUNC result code.
91 * dns/query.py (udp): When checking that addresses are the same,
92 use the binary form of the address in the comparison. This
93 ensures that we don't treat addresses as different if they have
94 equivalent but differing textual representations. E.g. "1:00::1"
95 and "1::1" represent the same address but are not textually equal.
96 Thanks to Kim Davies for reporting this bug.
98 * The resolver's query() method now has an optional 'source' parameter,
99 allowing the source IP address to be specified. Thanks to
100 Alexander Lind for suggesting the change and sending a patch.
102 * Added NSEC3 and NSEC3PARAM support.
104 2009-06-17 Bob Halley <halley@dnspython.org>
106 * Fixed NSEC.to_text(), which was only printing the last window.
107 Thanks to Brian Wellington for finding the problem and fixing it.
109 2009-03-30 Bob Halley <halley@dnspython.org>
111 * dns/query.py (xfr): Allow UDP IXFRs. Use "one_rr_per_rrset" mode when
114 2009-03-30 Bob Halley <halley@dnspython.org>
116 * Add "one_rr_per_rrset" mode switch to methods which parse
117 messages from wire format (e.g. dns.message.from_wire(),
118 dns.query.udp(), dns.query.tcp()). If set, each RR read is
119 placed in its own RRset (instead of being coalesced).
121 2009-03-30 Bob Halley <halley@dnspython.org>
123 * Added EDNS option support.
125 2008-10-16 Bob Halley <halley@dnspython.org>
127 * dns/rdtypes/ANY/DS.py: The from_text() parser for DS RRs did not
128 allow multiple Base64 chunks. Thanks to Rakesh Banka for
129 finding this bug and submitting a patch.
131 2008-10-08 Bob Halley <halley@dnspython.org>
133 * Add entropy module.
135 * When validating TSIGs, we need to use the absolute name.
137 2008-06-03 Bob Halley <halley@dnspython.org>
139 * dns/message.py (Message.set_rcode): The mask used preserved the
140 extended rcode, instead of everything else in ednsflags.
142 * dns/message.py (Message.use_edns): ednsflags was not kept
143 coherent with the specified edns version.
145 2008-02-06 Bob Halley <halley@dnspython.org>
147 * dns/ipv6.py (inet_aton): We could raise an exception other than
148 dns.exception.SyntaxError in some cases.
150 * dns/tsig.py: Raise an exception when the peer has set a non-zero
153 2007-11-25 Bob Halley <halley@dnspython.org>
155 * (Version 1.6.0 released)
157 2007-11-25 Bob Halley <halley@dnspython.org>
159 * dns/query.py (_wait_for): if select() raises an exception due to
160 EINTR, we should just select() again.
162 2007-06-13 Bob Halley <halley@dnspython.org>
164 * dns/inet.py: Added is_multicast().
166 * dns/query.py (udp): If the queried address is a multicast address, then
167 don't check that the address of the response is the same as the address
170 2007-05-24 Bob Halley <halley@dnspython.org>
172 * dns/rdtypes/IN/NAPTR.py: NAPTR comparisons didn't compare the
173 preference field due to a typo.
175 2007-02-07 Bob Halley <halley@dnspython.org>
177 * dns/resolver.py: Integrate code submitted by Paul Marks to
178 determine whether a Windows NIC is enabled. The way dnspython
179 used to do this does not work on Windows Vista.
181 2006-12-10 Bob Halley <halley@dnspython.org>
183 * (Version 1.5.0 released)
185 2006-11-03 Bob Halley <halley@dnspython.org>
187 * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type.
189 2006-11-02 Bob Halley <halley@dnspython.org>
191 * dns/query.py (udp): Messages from unexpected sources can now be
192 ignored by setting ignore_unexpected to True.
194 2006-10-31 Bob Halley <halley@dnspython.org>
196 * dns/query.py (udp): When raising UnexpectedSource, add more
197 detail about what went wrong to the exception.
199 2006-09-22 Bob Halley <halley@dnspython.org>
201 * dns/message.py (Message.use_edns): add reasonable defaults for
202 the ednsflags, payload, and request_payload parameters.
204 * dns/message.py (Message.want_dnssec): add a convenience method for
205 enabling/disabling the "DNSSEC desired" flag in requests.
207 * dns/message.py (make_query): add "use_edns" and "want_dnssec"
210 2006-08-17 Bob Halley <halley@dnspython.org>
212 * dns/resolver.py (Resolver.read_resolv_conf): If /etc/resolv.conf
213 doesn't exist, just use the default resolver configuration (i.e.
214 the same thing we would have used if resolv.conf had existed and
217 2006-07-26 Bob Halley <halley@dnspython.org>
219 * dns/resolver.py (Resolver._config_win32_fromkey): fix
220 cut-and-paste error where we passed the wrong variable to
221 self._config_win32_search(). Thanks to David Arnold for finding
222 the bug and submitting a patch.
224 2006-07-20 Bob Halley <halley@dnspython.org>
226 * dns/resolver.py (Answer): Add more support for the sequence
227 protocol, forwarding requests to the answer object's rrset.
228 E.g. "for a in answer" is equivalent to "for a in answer.rrset",
229 "answer[i]" is equivalent to "answer.rrset[i]", and
230 "answer[i:j]" is equivalent to "answer.rrset[i:j]".
232 2006-07-19 Bob Halley <halley@dnspython.org>
234 * dns/query.py (xfr): Add IXFR support.
236 2006-06-22 Bob Halley <halley@dnspython.org>
238 * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type.
240 2006-06-21 Bob Halley <halley@dnspython.org>
242 * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type.
244 2006-06-02 Bob Halley <halley@dnspython.org>
246 * (Version 1.4.0 released)
248 2006-04-25 Bob Halley <halley@dnspython.org>
250 * dns/rrset.py (RRset.to_rdataset): Added a convenience method
251 to convert an rrset into an rdataset.
253 2006-03-27 Bob Halley <halley@dnspython.org>
255 * Added dns.e164.query(). This function can be used to look for
256 NAPTR RRs for a specified number in several domains, e.g.:
258 dns.e164.query('16505551212',
259 ['e164.dnspython.org.', 'e164.arpa.'])
261 2006-03-26 Bob Halley <halley@dnspython.org>
263 * dns/resolver.py (Resolver.query): The resolver deleted from
264 a list while iterating it, which makes the iterator unhappy.
266 2006-03-17 Bob Halley <halley@dnspython.org>
268 * dns/resolver.py (Resolver.query): The resolver needlessly
269 delayed responses for successful queries.
271 2006-01-18 Bob Halley <halley@dnspython.org>
273 * dns/rdata.py: added a validate() method to the rdata class. If
274 you change an rdata by assigning to its fields, it is a good
275 idea to call validate() when you are done making changes.
276 For example, if 'r' is an MX record and then you execute:
278 r.preference = 100000 # invalid, because > 65535
281 The validation will fail and an exception will be raised.
283 2006-01-11 Bob Halley <halley@dnspython.org>
285 * dns/ttl.py: TTLs are now bounds checked to be within the closed
286 interval [0, 2^31 - 1].
288 * The BIND 8 TTL syntax is now accepted in the SOA refresh, retry,
289 expire, and minimum fields, and in the original_ttl field of
290 SIG and RRSIG records.
292 2006-01-04 Bob Halley <halley@dnspython.org>
294 * dns/resolver.py: The windows registry irritatingly changes the
295 list element delimiter in between ' ' and ',' (and vice-versa)
296 in various versions of windows. We now cope by always looking
297 for either one (' ' first).
299 2005-12-27 Bob Halley <halley@dnspython.org>
301 * dns/e164.py: Added routines to convert between E.164 numbers and
302 their ENUM domain name equivalents.
304 * dns/reversename.py: Added routines to convert between IPv4 and
305 IPv6 addresses and their DNS reverse-map equivalents.
307 2005-12-18 Bob Halley <halley@dnspython.org>
309 * dns/rdtypes/ANY/LOC.py (_tuple_to_float): The sign was lost when
310 converting a tuple into a float, which broke conversions of
311 south latitudes and west longitudes.
313 2005-11-17 Bob Halley <halley@dnspython.org>
315 * dns/zone.py: The 'origin' parameter to from_text() and from_file()
316 is now optional. If not specified, dnspython will use the
317 first $ORIGIN in the text as the zone's origin.
319 * dns/zone.py: Sanity checks of the zone's origin node can now
322 2005-11-12 Bob Halley <halley@dnspython.org>
324 * dns/name.py: Preliminary Unicode support has been added for
325 domain names. Running dns.name.from_text() on a Unicode string
326 will now encode each label using the IDN ACE encoding. The
327 to_unicode() method may be used to convert a dns.name.Name with
328 IDN ACE labels back into a Unicode string. This functionality
329 requires Python 2.3 or greater.
331 2005-10-31 Bob Halley <halley@dnspython.org>
333 * (Version 1.3.5 released)
335 2005-10-12 Bob Halley <halley@dnspython.org>
337 * dns/zone.py: Zone.iterate_rdatasets() and Zone.iterate_rdatas()
338 did not have a default rdtype of dns.rdatatype.ANY as their
339 docstrings said they did. They do now.
341 2005-10-06 Bob Halley <halley@dnspython.org>
343 * dns/name.py: Added the parent() method, which returns the
346 2005-10-01 Bob Halley <halley@dnspython.org>
348 * dns/resolver.py: Added zone_for_name() helper, which returns
349 the name of the zone which contains the specified name.
351 * dns/resolver.py: Added get_default_resolver(), which returns
352 the default resolver, initializing it if necessary.
354 2005-09-29 Bob Halley <halley@dnspython.org>
356 * dns/resolver.py (Resolver._compute_timeout): If time goes
357 backwards a little bit, ignore it.
359 2005-07-31 Bob Halley <halley@dnspython.org>
361 * (Version 1.3.4 released)
363 2005-07-31 Bob Halley <halley@dnspython.org>
365 * dns/message.py (make_response): Trying to respond to a response
366 threw a NameError while trying to throw a FormErr since it used
367 the wrong name for the FormErr exception.
369 * dns/query.py (_connect): We needed to ignore EALREADY too.
371 * dns/query.py: Optional "source" and "source_port" parameters
372 have been added to udp(), tcp(), and xfr(). Thanks to Ralf
373 Weber for suggesting the change and providing a patch.
375 2005-06-05 Bob Halley <halley@dnspython.org>
377 * dns/query.py: The requirement that the "where" parameter be
378 an IPv4 or IPv6 address is now documented.
380 2005-06-04 Bob Halley <halley@dnspython.org>
382 * dns/resolver.py: The resolver now does exponential backoff
383 each time it runs through all of the nameservers.
385 * dns/resolver.py: rcodes which indicate a nameserver is likely
386 to be a "permanent failure" for a query cause the nameserver
387 to be removed from the mix for that query.
389 2005-01-30 Bob Halley <halley@dnspython.org>
391 * (Version 1.3.3 released)
393 2004-10-25 Bob Halley <halley@dnspython.org>
395 * dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
396 incorrectly rejected TXT records where a value was not quoted.
398 2004-10-11 Bob Halley <halley@dnspython.org>
400 * dns/message.py: Added make_response(), which creates a skeletal
401 response for the specified query. Added opcode() and set_opcode()
402 convenience methods to the Message class. Added the request_payload
403 attribute to the Message class.
405 2004-10-10 Bob Halley <halley@dnspython.org>
407 * dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
408 mode incorrectly set zone.origin to the empty name.
410 2004-09-02 Bob Halley <halley@dnspython.org>
412 * dns/name.py (Name.to_wire): The 'file' parameter to
413 Name.to_wire() is now optional; if omitted, the wire form will
414 be returned as the value of the function.
416 2004-08-14 Bob Halley <halley@dnspython.org>
418 * dns/message.py (Message.find_rrset): find_rrset() now uses an
419 index, vastly improving the from_wire() performance of large
420 messages such as zone transfers.
422 2004-08-07 Bob Halley <halley@dnspython.org>
424 * (Version 1.3.2 released)
426 2004-08-04 Bob Halley <halley@dnspython.org>
428 * dns/query.py: sending queries to a nameserver via IPv6 now
431 * dns/inet.py (af_for_address): Add af_for_address(), which looks
432 at a textual-form address and attempts to determine which address
435 * dns/query.py: the default for the 'af' parameter of the udp(),
436 tcp(), and xfr() functions has been changed from AF_INET to None,
437 which causes dns.inet.af_for_address() to be used to determine the
438 address family. If dns.inet.af_for_address() can't figure it out,
439 we fall back to AF_INET and hope for the best.
441 2004-07-31 Bob Halley <halley@dnspython.org>
443 * dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
444 does not allow specifying types by number, so we shouldn't either.
446 * dns/renderer.py: the renderer module didn't import random,
447 causing an exception to be raised if a query id wasn't provided
448 when a Renderer was created.
450 * dns/resolver.py (Resolver.query): the resolver wasn't catching
451 dns.exception.Timeout, so a timeout erroneously caused the whole
452 resolution to fail instead of just going on to the next server.
454 2004-06-16 Bob Halley <halley@dnspython.org>
456 * dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
457 were converted incorrectly if the length of the milliseconds
458 string was less than 3.
460 2004-06-06 Bob Halley <halley@dnspython.org>
462 * (Version 1.3.1 released)
464 2004-05-22 Bob Halley <halley@dnspython.org>
466 * dns/update.py (Update.delete): We erroneously specified a
467 "deleting" value of dns.rdatatype.NONE instead of
468 dns.rdataclass.NONE when the thing being deleted was either an
469 Rdataset instance or an Rdata instance.
471 * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
474 2004-05-14 Bob Halley <halley@dnspython.org>
476 * dns/rdata.py (from_text): The masterfile reader did not
477 accept the unknown RR syntax when used with a known RR type.
479 2004-05-08 Bob Halley <halley@dnspython.org>
481 * dns/name.py (from_text): dns.name.from_text() did not raise
482 an exception if a backslash escape ended prematurely.
484 2004-04-09 Bob Halley <halley@dnspython.org>
486 * dns/zone.py (_MasterReader._rr_line): The masterfile reader
487 erroneously treated lines starting with leading whitespace but
488 not having any RR definition as an error. It now treats
489 them like a blank line (which is not an error).
491 2004-04-01 Bob Halley <halley@dnspython.org>
493 * (Version 1.3.0 released)
495 2004-03-19 Bob Halley <halley@dnspython.org>
497 * Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
499 2004-01-16 Bob Halley <halley@dnspython.org>
501 * dns/query.py (_connect): Windows returns EWOULDBLOCK instead
502 of EINPROGRESS when trying to connect a nonblocking socket.
504 2003-11-13 Bob Halley <halley@dnspython.org>
506 * dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
507 incorrectly, since we were interpreting the values of altitiude,
508 size, hprec, and vprec in meters instead of centimeters.
510 * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
511 encoded with just one octet, not two!
513 2003-11-09 Bob Halley <halley@dnspython.org>
515 * dns/resolver.py (Cache.maybe_clean): The cleaner deleted items
516 from the dictionary while iterating it, causing a RuntimeError
517 to be raised. Thanks to Mark R. Levinson for the bug report,
518 regression test, and fix.
520 2003-11-07 Bob Halley <halley@dnspython.org>
522 * (Version 1.2.0 released)
524 2003-11-03 Bob Halley <halley@dnspython.org>
526 * dns/zone.py (_MasterReader.read): The saved_state now includes
529 2003-11-01 Bob Halley <halley@dnspython.org>
531 * dns/tokenizer.py (Tokenizer.get): The tokenizer didn't
532 handle escaped delimiters.
534 2003-10-27 Bob Halley <halley@dnspython.org>
536 * dns/resolver.py (Resolver.read_resolv_conf): If no nameservers
537 are configured in /etc/resolv.conf, the default nameserver
538 list should be ['127.0.0.1'].
540 2003-09-08 Bob Halley <halley@dnspython.org>
542 * dns/resolver.py (Resolver._config_win32_fromkey): We didn't
543 catch WindowsError, which can happen if a key is not defined
546 2003-09-06 Bob Halley <halley@dnspython.org>
548 * (Version 1.2.0b1 released)
550 2003-09-05 Bob Halley <halley@dnspython.org>
552 * dns/query.py: Timeout support has been overhauled to provide
553 timeouts under Python 2.2 as well as 2.3, and to provide more
556 2003-08-30 Bob Halley <halley@dnspython.org>
558 * dns/zone.py: dns.exception.SyntaxError is raised for unknown
559 master file directives.
561 2003-08-28 Bob Halley <halley@dnspython.org>
563 * dns/zone.py: $INCLUDE processing is now enabled/disabled using
564 the allow_include parameter. The default is to process $INCLUDE
565 for from_file(), and to disallow $INCLUDE for from_text(). The
566 master reader now calls zone.check_origin_node() by default after
567 the zone has been read. find_rdataset() called get_node() instead
568 of find_node(), which result in an incorrect exception. The
569 relativization state of a zone is now remembered and applied
570 consistently when looking up names. from_xfr() now supports
571 relativization like the _MasterReader.
573 2003-08-22 Bob Halley <halley@dnspython.org>
575 * dns/zone.py: The _MasterReader now understands $INCLUDE.
577 2003-08-12 Bob Halley <halley@dnspython.org>
579 * dns/zone.py: The _MasterReader now specifies the file and line
580 number when a syntax error occurs. The BIND 8 TTL format is now
581 understood when loading a zone, though it will never be emitted.
582 The from_file() function didn't pass the zone_factory parameter
585 2003-08-10 Bob Halley <halley@dnspython.org>
587 * (Version 1.1.0 released)
589 2003-08-07 Bob Halley <halley@dnspython.org>
591 * dns/update.py (Update._add): A typo meant that _add would
592 fail if the thing being added was an Rdata object (as
593 opposed to an Rdataset or the textual form of an Rdata).
595 2003-08-05 Bob Halley <halley@dnspython.org>
597 * dns/set.py: the simple Set class has been moved to its
598 own module, and augmented to support more set operations.
600 2003-08-04 Bob Halley <halley@dnspython.org>
602 * Node and all rdata types have been "slotted". This speeds
603 things up a little and reduces memory usage noticeably.
605 2003-08-02 Bob Halley <halley@dnspython.org>
607 * (Version 1.1.0c1 released)
609 2003-08-02 Bob Halley <halley@dnspython.org>
611 * dns/rdataset.py: SimpleSets now support more set options.
613 * dns/message.py: Added the get_rrset() method. from_file() now
614 allows Unicode filenames and turns on universal newline support if
615 it opens the file itself.
617 * dns/node.py: Added the delete_rdataset() and replace_rdataset()
620 * dns/zone.py: Added the delete_node(), delete_rdataset(), and
621 replace_rdataset() methods. from_file() now allows Unicode
622 filenames and turns on universal newline support if it opens the
623 file itself. Added a to_file() method.
625 2003-08-01 Bob Halley <halley@dnspython.org>
627 * dns/opcode.py: Opcode from/to text converters now understand
628 numeric opcodes. The to_text() method will return a numeric opcode
629 string if it doesn't know a text name for the opcode.
631 * dns/message.py: Added set_rcode(). Fixed code where ednsflags
632 wasn't treated as a long.
634 * dns/rcode.py: ednsflags wasn't treated as a long. Rcode from/to
635 text converters now understand numeric rcodes. The to_text()
636 method will return a numeric rcode string if it doesn't know
637 a text name for the rcode.
639 * examples/reverse.py: Added a new example program that builds a
640 reverse (address-to-name) mapping table from the name-to-address
641 mapping specified by A RRs in zone files.
643 * dns/node.py: Added get_rdataset() method.
645 * dns/zone.py: Added get_rdataset() and get_rrset() methods. Added
648 2003-07-31 Bob Halley <halley@dnspython.org>
650 * dns/zone.py: Added the iterate_rdatasets() method which returns
651 a generator which yields (name, rdataset) tuples for all the
652 rdatasets in the zone matching the specified rdatatype.
654 2003-07-30 Bob Halley <halley@dnspython.org>
656 * (Version 1.1.0b2 released)
658 2003-07-30 Bob Halley <halley@dnspython.org>
660 * dns/zone.py: Added find_rrset() and find_rdataset() convenience
661 methods. They let you retrieve rdata with the specified name
662 and type in one call.
664 * dns/node.py: Nodes no longer have names; owner names are
665 associated with nodes in the Zone object's nodes dictionary.
667 * dns/zone.py: Zone objects now implement more of the standard
668 mapping interface. __iter__ has been changed to iterate the keys
669 rather than values to match the standard mapping interface's
672 2003-07-20 Bob Halley <halley@dnspython.org>
674 * dns/ipv6.py (inet_ntoa): Handle embedded IPv4 addresses.
676 2003-07-19 Bob Halley <halley@dnspython.org>
678 * (Version 1.1.0b1 released)
680 2003-07-18 Bob Halley <halley@dnspython.org>
682 * dns/tsig.py: The TSIG validation of TCP streams where not
683 every message is signed now works correctly.
685 * dns/zone.py: Zones can now be compared for equality and
686 inequality. If the other object in the comparison is also
687 a zone, then "the right thing" happens; i.e. the zones are
688 equal iff.: they have the same rdclass, origin, and nodes.
690 2003-07-17 Bob Halley <halley@dnspython.org>
692 * dns/message.py (Message.use_tsig): The method now allows for
693 greater control over the various fields in the generated signature
695 (_WireReader._get_section): UnknownTSIGKey is now raised if an
696 unknown key is encountered, or if a signed message has no keyring.
698 2003-07-16 Bob Halley <halley@dnspython.org>
700 * dns/tokenizer.py (Tokenizer._get_char): get_char and unget_char
701 have been renamed to _get_char and _unget_char since they are not
702 useful to clients of the tokenizer.
704 2003-07-15 Bob Halley <halley@dnspython.org>
706 * dns/zone.py (_MasterReader._rr_line): owner names were being
707 unconditionally relativized; it makes much more sense for them
708 to be relativized according to the relativization setting of
711 2003-07-12 Bob Halley <halley@dnspython.org>
713 * dns/resolver.py (Resolver.read_resolv_conf): The resolv.conf
714 parser did not allow blank / whitespace-only lines, nor did it
715 allow comments. Both are now supported.
717 2003-07-11 Bob Halley <halley@dnspython.org>
719 * dns/name.py (Name.to_digestable): to_digestable() now
720 requires an origin to be specified if the name is relative.
721 It will raise NeedAbsoluteNameOrOrigin if the name is
722 relative and there is either no origin or the origin is
724 (Name.split): returned the wrong answer if depth was 0 or depth
725 was the length of the name. split() now does bounds checking
726 on depth, and raises ValueError if depth < 0 or depth > the length
729 2003-07-10 Bob Halley <halley@dnspython.org>
731 * dns/ipv6.py (inet_ntoa): The routine now minimizes its output
732 strings. E.g. the IPv6 address
733 "0000:0000:0000:0000:0000:0000:0000:0001" is minimized to "::1".
734 We do not, however, make any effort to display embedded IPv4
735 addresses in the dot-quad notation.
737 2003-07-09 Bob Halley <halley@dnspython.org>
739 * dns/inet.py: We now supply our own AF_INET and AF_INET6
740 constants since AF_INET6 may not always be available. If the
741 socket module has AF_INET6, we will use it. If not, we will
742 use our own value for the constant.
744 * dns/query.py: the functions now take an optional af argument
745 specifying the address family to use when creating the socket.
747 * dns/rdatatype.py (is_metatype): a typo caused the function
748 return true only for type OPT.
750 * dns/message.py: message section list elements are now RRsets
751 instead of Nodes. This API change makes processing messages
752 easier for many applications.
754 2003-07-07 Bob Halley <halley@dnspython.org>
756 * dns/rrset.py: added. An RRset is a named rdataset.
758 * dns/rdataset.py (Rdataset.__eq__): rdatasets may now be compared
759 for equality and inequality with other objects. Rdataset instance
760 variables are now slotted.
762 * dns/message.py: The wire format and text format readers are now
763 classes. Variables related to reader state have been moved out
764 of the message class.
766 2003-07-06 Bob Halley <halley@dnspython.org>
768 * dns/name.py (from_text): '@' was not interpreted as the empty
771 * dns/zone.py: the master file reader derelativized names in rdata
772 relative to the zone's origin, not relative to the current origin.
773 The reader now deals with relativization in two steps. The rdata
774 is read and derelativized using the current origin. The rdata's
775 relativity is then chosen using the zone origin and the relativize
776 boolean. Here's an example.
782 If the zone origin is example., and relativization is on, then
783 This fragment will become:
785 bar.foo.example. 300 IN MX 0 blaz.foo.example.
787 after the first step (derelativization to current origin), and
789 bar.foo 300 IN MX 0 blaz.foo
791 after the second step (relativiation to zone origin).
793 * dns/namedict.py: added.
795 * dns/zone.py: The master file reader has been made into its
796 own class. Reader-related instance variables have been moved
797 form the zone class into the reader class.
799 * dns/zone.py: Add node_factory class attribute. An application
800 can now subclass Zone and Node and have a zone whose nodes are of
801 the subclassed Node type. The from_text(), from_file(), and
802 from_xfr() algorithms now take an optional zone_factory argument.
803 This allows the algorithms to be used to create zones whose class
804 is a subclass of Zone.
807 2003-07-04 Bob Halley <halley@dnspython.org>
809 * dns/renderer.py: added new wire format rendering module and
810 converted message.py to use it. Applications which want
811 fine-grained control over the conversion to wire format may call
812 the renderer directy, instead of having it called on their behalf
815 2003-07-02 Bob Halley <halley@dnspython.org>
817 * dns/name.py (_validate_labels): The NameTooLong test was
820 * dns/message.py (Message.to_wire): dns.exception.TooBig is
821 now raised if the wire encoding exceeds the specified
824 2003-07-01 Bob Halley <halley@dnspython.org>
826 * dns/message.py: EDNS encoding was broken. from_text()
827 didn't parse rcodes, flags, or eflags correctly. Comparing
828 messages with other types of objects didn't work.
830 2003-06-30 Bob Halley <halley@dnspython.org>
832 * (Version 1.0.0 released)
834 2003-06-30 Bob Halley <halley@dnspython.org>
836 * dns/rdata.py: Rdatas now implement rich comparisons instead of
839 * dns/name.py: Names now implement rich comparisons instead of
842 * dns/inet.py (inet_ntop): Always use our code, since the code
843 in the socket module doesn't support AF_INET6 conversions if
844 IPv6 sockets are not available on the system.
846 * dns/resolver.py (Answer.__init__): A dangling CNAME chain was
847 not raising NoAnswer.
849 * Added a simple resolver Cache class.
851 * Added an expiration attribute to answer instances.
853 2003-06-24 Bob Halley <halley@dnspython.org>
855 * (Version 1.0.0b3 released)
857 2003-06-24 Bob Halley <halley@dnspython.org>
859 * Renamed module "DNS" to "dns" to avoid conflicting with
862 2003-06-23 Bob Halley <halley@dnspython.org>
864 * The from_text() relativization controls now work the same way as
865 the to_text() controls.
867 * DNS/rdata.py: The parsing of generic rdata was broken.
869 2003-06-21 Bob Halley <halley@dnspython.org>
871 * (Version 1.0.0b2 released)
873 2003-06-21 Bob Halley <halley@dnspython.org>
875 * The Python 2.2 socket.inet_aton() doesn't seem to like
876 '255.255.255.255'. We work around this.
878 * Fixed bugs in rdata to_wire() and from_wire() routines of a few
879 types. These bugs were discovered by running the tests/zone.py
882 * Added implementation of type APL.
884 2003-06-20 Bob Halley <halley@dnspython.org>
886 * DNS/rdtypes/IN/AAAA.py: Use our own versions of inet_ntop and
887 inet_pton if the socket module doesn't provide them for us.
889 * The resolver now does a better job handling exceptions. In
890 particular, it no longer eats all exceptions; rather it handles
891 those exceptions it understands, and leaves the rest uncaught.
893 * Exceptions have been pulled into their own module. Almost all
894 exceptions raised by the code are now subclasses of
895 DNS.exception.DNSException. All form errors are subclasses of
896 DNS.exception.FormError (which is itself a subclass of
897 DNS.exception.DNSException).
899 2003-06-19 Bob Halley <halley@dnspython.org>
901 * Added implementations of types DS, NXT, SIG, and WKS.
903 * __cmp__ for type A and AAAA could produce incorrect results.
905 2003-06-18 Bob Halley <halley@dnspython.org>
907 * Started test suites for zone.py and tokenizer.py.
909 * Added implementation of type KEY.
911 * DNS/rdata.py(_base64ify): \n could be emitted erroneously.
913 * DNS/rdtypes/ANY/SOA.py (SOA.from_text): The SOA RNAME field could
914 be set to the value of MNAME in common cases.
916 * DNS/rdtypes/ANY/X25.py: __init__ was broken.
918 * DNS/zone.py (from_text): $TTL handling erroneously caused the
919 next line to be eaten.
921 * DNS/tokenizer.py (Tokenizer.get): parsing was broken for empty
922 quoted strings. Quoted strings didn't handle \ddd escapes. Such
923 escapes are appear not to comply with RFC 1035, but BIND allows
924 them and they seem useful, so we allow them too.
926 * DNS/rdtypes/ANY/ISDN.py (ISDN.from_text): parsing was
927 broken for ISDN RRs without subaddresses.
929 * DNS/zone.py (from_file): from_file() didn't work because
930 some required parameters were not passed to from_text().
932 2003-06-17 Bob Halley <halley@dnspython.org>
934 * (Version 1.0.0b1 released)
936 2003-06-17 Bob Halley <halley@dnspython.org>
938 * Added implementation of type PX.
940 2003-06-16 Bob Halley <halley@dnspython.org>
942 * Added implementation of types CERT, GPOS, LOC, NSAP, NSAP-PTR.
944 * DNS/rdatatype.py (_by_value): A cut-and-paste error had broken
947 2003-06-12 Bob Halley <halley@dnspython.org>
949 * Created a tests directory and started adding tests.
951 * Added "and its documentation" to the permission grant in the
954 2003-06-12 Bob Halley <halley@dnspython.org>
956 * DNS/name.py (Name.is_wild): is_wild() erroneously raised IndexError
957 if the name was empty.
959 2003-06-10 Bob Halley <halley@dnspython.org>
961 * Added implementations of types AFSDB, X25, and ISDN.
963 * The documentation associated with the various rdata types has been
964 improved. In particular, instance variables are now described.
966 2003-06-09 Bob Halley <halley@dnspython.org>
968 * Added implementations of types HINFO, RP, and RT.
970 * DNS/message.py (make_query): Document that make_query() sets
971 flags to DNS.flags.RD, and chooses a random query id.
973 2003-06-05 Bob Halley <halley@dnspython.org>
975 * (Version 1.0.0a2 released)
977 2003-06-05 Bob Halley <halley@dnspython.org>
979 * DNS/node.py: removed __getitem__ and __setitem__, since
980 they are not used by the codebase and were not useful in
983 * DNS/message.py (from_file): from_file() now allows a
984 filename to be specified instead of a file object.
986 * DNS/rdataset.py: The is_compatible() method of the
987 DNS.rdataset.Rdataset class was deleted.
989 2003-06-04 Bob Halley <halley@dnspython.org>
991 * DNS/name.py (class Name): Names are now immutable.
993 * DNS/name.py: the is_comparable() method has been removed, since
994 names are always comparable.
996 * DNS/resolver.py (Resolver.query): A query could run for up
997 to the lifetime + the timeout. This has been corrected and the
998 query will now only run up to the lifetime.
1000 2003-06-03 Bob Halley <halley@dnspython.org>
1002 * DNS/resolver.py: removed the 'new' function since it is not the
1003 style of the library to have such a function. Call
1004 DNS.resolver.Resolver() to make a new resolver.
1006 2003-06-03 Bob Halley <halley@dnspython.org>
1008 * DNS/resolver.py (Resolver._config_win32_fromkey): The DhcpServer
1009 list is space separated, not comma separated.
1011 2003-06-03 Bob Halley <halley@dnspython.org>
1013 * DNS/update.py: Added an update module to make generating updates
1016 2003-06-03 Bob Halley <halley@dnspython.org>
1018 * Commas were missing in some of the __all__ entries in various
1021 2003-05-30 Bob Halley <halley@dnspython.org>
1023 * (Version 1.0.0a1 released)