1 2014-04-11 Bob Halley <halley@dnspython.org>
3 * dns/zone.py: Do not put back an unescaped token. This was
4 causing escape processing for domain names to break. Thanks to
5 connormclaud for reporting the problem.
7 2014-04-04 Bob Halley <halley@dnspython.org>
9 * dns/message.py: Making a response didn't work correctly if the
10 query was signed with TSIG and we knew the key. Thanks to Jeffrey
11 Stiles for reporting the problem.
13 2013-12-11 Bob Halley <halley@dnspython.org>
15 * dns/query.py: Fix problems with the IXFR state machine which caused
16 long diffs to fail. Thanks to James Raftery for the fix and the
17 repeated prodding to get it applied :)
19 2013-09-02 Bob Halley <halley@dnspython.org>
21 * (Version 1.11.1 released)
23 2013-09-01 Bob Halley <halley@dnspython.org>
25 * dns/tsigkeyring.py (to_text): we want keyname.to_text(), not
26 dns.name.to_text(keyname). Thangs to wangwang for the fix.
28 2013-08-26 Bob Halley <halley@dnspython.org>
30 * dns/tsig.py (sign): multi-message TSIGs were broken for
31 algorithms other than HMAC-MD5 because we weren't passing the
32 right digest module to the HMAC code. Thanks to salzmdan for
35 2013-08-09 Bob Halley <halley@dnspython.org>
37 * dns/dnssec.py (_find_candidate_keys): we tried to extract the
38 key from the wrong variable name. Thanks to Andrei Fokau for the
41 2013-07-08 Bob Halley <halley@dnspython.org>
43 * dns/resolver.py: we want 'self.retry_servfail' not just
44 retry_servfail. Reported by many, thanks! Thanks to
45 Jeffrey C. Ollie for the fix.
47 2013-07-08 Bob Halley <halley@dnspython.org>
49 * tests/grange.py: fix tests to use older-style print formatting
50 for backwards compatibility with python 2.4. Thanks to
51 Jeffrey C. Ollie for the fix.
53 2013-07-01 Bob Halley <halley@dnspython.org>
55 * (Version 1.11.0 released)
57 2013-04-28 Bob Halley <halley@dnspython.org>
59 * dns/name.py (Name.to_wire): Do not add items with offsets >= 2^14
60 to the compression table. Thanks to Casey Deccio for discovering
63 2013-04-26 Bob Halley <halley@dnspython.org>
65 * dns/ipv6.py (inet_ntoa): We now comply with RFC 5952 section
66 5.2.2, by *not* using the :: syntax to shorten just one 16-bit
67 field. Thanks to David Waitzman for reporting the bug and
70 2013-03-31 Bob Halley <halley@dnspython.org>
72 * lock caches in case they are shared
74 * raise YXDOMAIN if we see one
76 * do not print empty rdatasets
78 * Add contributed $GENERATE support (thanks uberj)
80 * Remove DNSKEY keytag uniqueness assumption (RFC 4034, section 8)
81 (thanks James Dempsey)
85 * added set_flags() method to dns.resolver.Resolver
87 2012-09-25 Pieter Lexis
89 * added support for TLSA RR
91 2012-08-28 Bob Halley <halley@dnspython.org>
93 * dns/rdtypes/ANY/NSEC3.py (NSEC3.from_text): The NSEC3 from_text()
94 method could erroneously emit empty bitmap windows (i.e. windows
95 with a count of 0 bytes); such bitmaps are illegal.
97 2012-04-08 Bob Halley <halley@dnspython.org>
99 * (Version 1.10.0 released)
101 2012-04-08 Bob Halley <halley@dnspython.org>
103 * dns/message.py (make_query): All EDNS values may now be
104 specified when calling make_query()
106 * dns/query.py: Specifying source_port had no effect if source was
107 not specified. We now use the appropriate wildcard source in
110 * dns/resolver.py (Resolver.query): source_port may now be
113 * dns/resolver.py (Resolver.query): Switch to TCP when a UDP
114 response is truncated. Handle nameservers that serve on UDP
117 2012-04-07 Bob Halley <halley@dnspython.org>
119 * dns/zone.py (from_xfr): dns.zone.from_xfr() now takes a
120 'check_origin' parameter which defaults to True. If set to
121 False, then dnspython will not make origin checks on the zone.
122 Thanks to Carlos Perez for the report.
124 * dns/rdtypes/ANY/SSHFP.py (SSHFP.from_text): Allow whitespace in
125 the text string. Thanks to Jan Andres for the report and the
128 * dns/message.py (from_wire): dns.message.from_wire() now takes
129 an 'ignore_trailing' parameter which defaults to False. If set
130 to True, then trailing junk will be ignored instead of causing
131 TrailingJunk to be raised. Thanks to Shane Huntley for
132 contributing the patch.
134 2011-08-22 Bob Halley <halley@dnspython.org>
136 * dns/resolver.py: Added LRUCache. In this cache implementation,
137 the cache size is limited to a user-specified number of nodes, and
138 when adding a new node to a full cache the least-recently used
141 2011-07-13 Bob Halley <halley@dnspython.org>
143 * dns/resolver.py: dns.resolver.override_system_resolver()
144 overrides the socket module's versions of getaddrinfo(),
145 getnameinfo(), getfqdn(), gethostbyname(), gethostbyname_ex() and
146 gethostbyaddr() with an implementation which uses a dnspython stub
147 resolver instead of the system's stub resolver. This can be
148 useful in testing situations where you want to control the
149 resolution behavior of python code without having to change the
150 system's resolver settings (e.g. /etc/resolv.conf).
151 dns.resolver.restore_system_resolver() undoes the change.
153 2011-07-08 Bob Halley <halley@dnspython.org>
155 * dns/ipv4.py: dnspython now provides its own, stricter, versions
156 of IPv4 inet_ntoa() and inet_aton() instead of using the OS's
159 * dns/ipv6.py: inet_aton() now bounds checks embedded IPv4 addresses
160 more strictly. Also, now only dns.exception.SyntaxError can be
163 2011-04-05 Bob Halley <halley@dnspython.org>
165 * Old DNSSEC types (KEY, NXT, and SIG) have been removed.
167 * Bounds checking of slices in rdata wire processing is now more
168 strict, and bounds errors (e.g. we got less data than was
169 expected) now raise dns.exception.FormError rather than
172 2011-03-28 Bob Halley <halley@dnspython.org>
174 * (Version 1.9.4 released)
176 2011-03-24 Bob Halley <halley@dnspython.org>
178 * dns/rdata.py (Rdata._wire_cmp): We need to specify no
179 compression and an origin to _wire_cmp() in case names in the
180 rdata are relative names.
182 * dns/rdtypes/ANY/SIG.py (SIG._cmp): Add missing 'import struct'.
183 Thanks to Arfrever Frehtes Taifersar Arahesis for reporting the
186 2011-03-24 Bob Halley <halley@dnspython.org>
188 * (Version 1.9.3 released)
190 2011-03-22 Bob Halley <halley@dnspython.org>
192 * dns/resolver.py: a boolean parameter, 'raise_on_no_answer', has
193 been added to the query() methods. In no-error, no-data
194 situations, this parameter determines whether NoAnswer should be
195 raised or not. If True, NoAnswer is raised. If False, then an
196 Answer() object with a None rrset will be returned.
198 * dns/resolver.py: Answer() objects now have a canonical_name field.
200 2011-01-11 Bob Halley <halley@dnspython.org>
202 * Dnspython was erroneously doing case-insensitive comparisons
203 of the names in NSEC and RRSIG RRs. Thanks to Casey Deccio for
206 2010-12-17 Bob Halley <halley@dnspython.org>
208 * dns/message.py (_WireReader._get_section): use "is" and not "=="
209 when testing what section an RR is in. Thanks to James Raftery
210 for reporting this bug.
212 2010-12-10 Bob Halley <halley@dnspython.org>
214 * dns/resolver.py (Resolver.query): disallow metaqueries.
216 * dns/rdata.py (Rdata.__hash__): Added a __hash__ method for rdata.
218 2010-11-23 Bob Halley <halley@dnspython.org>
220 * (Version 1.9.2 released)
222 2010-11-23 Bob Halley <halley@dnspython.org>
224 * dns/dnssec.py (_need_pycrypto): DSA and RSA are modules, not
225 functions, and I didn't notice because the test suite masked
228 2010-11-22 Bob Halley <halley@dnspython.org>
230 * (Version 1.9.1 released)
232 2010-11-22 Bob Halley <halley@dnspython.org>
234 * dns/dnssec.py: the "from" style import used to get DSA from
235 PyCrypto trashed a DSA constant. Now a normal import is used
236 to avoid namespace contamination.
238 2010-11-20 Bob Halley <halley@dnspython.org>
240 * (Version 1.9.0 released)
242 2010-11-07 Bob Halley <halley@dnspython.org>
244 * dns/dnssec.py: Added validate() to do basic DNSSEC validation
245 (requires PyCrypto). Thanks to Brian Wellington for the patch.
247 * dns/hash.py: Hash compatibility handling is now its own module.
249 2010-10-31 Bob Halley <halley@dnspython.org>
251 * dns/resolver.py (zone_for_name): A query name resulting in a
252 CNAME or DNAME response to a node which had an SOA was incorrectly
253 treated as a zone origin. In these cases, we should just look
254 higher. Thanks to Gert Berger for reporting this problem.
256 * Added zonediff.py to examples. This program compares two zones
257 and shows the differences either in diff-like plain text, or
258 HTML. Thanks to Dennis Kaarsemaker for contributing this
261 2010-10-27 Bob Halley <halley@dnspython.org>
263 * Incorporate a patch to use poll() instead of select() by
264 default on platforms which support it. Thanks to
265 Peter Schüller and Spotify for the contribution.
267 2010-10-17 Bob Halley <halley@dnspython.org>
269 * Python prior to 2.5.2 doesn't compute the correct values for
270 HMAC-SHA384 and HMAC-SHA512. We now detect attempts to use
271 them and raise NotImplemented if the Python version is too old.
272 Thanks to Kevin Chen for reporting the problem.
274 * Various routines that took the string forms of rdata types and
275 classes did not permit the strings to be Unicode strings.
276 Thanks to Ryan Workman for reporting the issue.
278 * dns/tsig.py: Added symbolic constants for the algorithm strings.
279 E.g. you can now say dns.tsig.HMAC_MD5 instead of
280 "HMAC-MD5.SIG-ALG.REG.INT". Thanks to Cillian Sharkey for
281 suggesting this improvement.
283 * dns/tsig.py (get_algorithm): fix hashlib compatibility; thanks to
284 Kevin Chen for the patch.
286 * dns/dnssec.py: Added key_id() and make_ds().
288 * dns/message.py: message.py needs to import dns.edns since it uses
291 2010-05-04 Bob Halley <halley@dnspython.org>
293 * dns/rrset.py (RRset.__init__): "covers" was not passed to the
294 superclass __init__(). Thanks to Shanmuga Rajan for reporting
297 2010-03-10 Bob Halley <halley@dnspython.org>
299 * The TSIG algorithm value was passed to use_tsig() incorrectly
300 in some cases. Thanks to 'ducciovigolo' for reporting the problem.
302 2010-01-26 Bob Halley <halley@dnspython.org>
304 * (Version 1.8.0 released)
306 2010-01-13 Bob Halley <halley@dnspython.org>
308 * dns/dnssec.py: Added RSASHA256 and RSASHA512 codepoints; added
309 other missing codepoints to _algorithm_by_text.
311 2010-01-12 Bob Halley <halley@dnspython.org>
313 * Escapes in masterfiles now work correctly. Previously they were
314 only working correctly when the text involved was part of a domain
317 * dns/tokenizer.py: The tokenizer's get() method now returns Token
318 objects, not (type, text) tuples.
320 2009-11-13 Bob Halley <halley@dnspython.org>
322 * Support has been added for hmac-sha1, hmac-sha224, hmac-sha256,
323 hmac-sha384 and hmac-sha512. Thanks to Kevin Chen for a
324 thoughtful, high quality patch.
326 * dns/update.py (Update::present): A zero TTL was not added if
327 present() was called with a single rdata, causing _add() to be
328 unhappy. Thanks to Eugene Kim for reporting the problem and
331 * dns/entropy.py: Use os.urandom() if present. Don't seed until
332 someone wants randomness.
334 2009-09-16 Bob Halley <halley@dnspython.org>
336 * dns/entropy.py: The entropy module needs locking in order to be
337 used safely in a multithreaded environment. Thanks to Beda Kosata
338 for reporting the problem.
340 2009-07-27 Bob Halley <halley@dnspython.org>
342 * dns/query.py (xfr): The socket was not set to nonblocking mode.
343 Thanks to Erik Romijn for reporting this problem.
345 2009-07-23 Bob Halley <halley@dnspython.org>
347 * dns/rdtypes/IN/SRV.py (SRV._cmp): SRV records were compared
348 incorrectly due to a cut-and-paste error. Thanks to Tommie
349 Gannert for reporting this bug.
351 * dns/e164.py (query): The resolver parameter was not used.
352 Thanks to MatÃas Bellone for reporting this bug.
354 2009-06-23 Bob Halley <halley@dnspython.org>
356 * dns/entropy.py (EntropyPool.__init__): open /dev/random unbuffered;
357 there's no need to consume more randomness than we need. Thanks
358 to Brian Wellington for the patch.
360 2009-06-19 Bob Halley <halley@dnspython.org>
362 * (Version 1.7.1 released)
364 2009-06-19 Bob Halley <halley@dnspython.org>
366 * DLV.py was omitted from the kit
368 * Negative prerequisites were not handled correctly in _get_section().
370 2009-06-19 Bob Halley <halley@dnspython.org>
372 * (Version 1.7.0 released)
374 2009-06-19 Bob Halley <halley@dnspython.org>
376 * On Windows, the resolver set the domain incorrectly. Thanks
377 to Brandon Carpenter for reporting this bug.
379 * Added a to_digestable() method to rdata classes; it returns the
380 digestable form (i.e. DNSSEC canonical form) of the rdata. For
381 most rdata types this is the same uncompressed wire form. For
382 certain older DNS RR types, however, domain names in the rdata
385 * Added support for the HIP RR type.
387 2009-06-18 Bob Halley <halley@dnspython.org>
389 * Added support for the DLV RR type.
391 * Added various DNSSEC related constants (e.g. algorithm identifiers,
394 * dns/tsig.py: Added support for BADTRUNC result code.
396 * dns/query.py (udp): When checking that addresses are the same,
397 use the binary form of the address in the comparison. This
398 ensures that we don't treat addresses as different if they have
399 equivalent but differing textual representations. E.g. "1:00::1"
400 and "1::1" represent the same address but are not textually equal.
401 Thanks to Kim Davies for reporting this bug.
403 * The resolver's query() method now has an optional 'source' parameter,
404 allowing the source IP address to be specified. Thanks to
405 Alexander Lind for suggesting the change and sending a patch.
407 * Added NSEC3 and NSEC3PARAM support.
409 2009-06-17 Bob Halley <halley@dnspython.org>
411 * Fixed NSEC.to_text(), which was only printing the last window.
412 Thanks to Brian Wellington for finding the problem and fixing it.
414 2009-03-30 Bob Halley <halley@dnspython.org>
416 * dns/query.py (xfr): Allow UDP IXFRs. Use "one_rr_per_rrset" mode when
419 2009-03-30 Bob Halley <halley@dnspython.org>
421 * Add "one_rr_per_rrset" mode switch to methods which parse
422 messages from wire format (e.g. dns.message.from_wire(),
423 dns.query.udp(), dns.query.tcp()). If set, each RR read is
424 placed in its own RRset (instead of being coalesced).
426 2009-03-30 Bob Halley <halley@dnspython.org>
428 * Added EDNS option support.
430 2008-10-16 Bob Halley <halley@dnspython.org>
432 * dns/rdtypes/ANY/DS.py: The from_text() parser for DS RRs did not
433 allow multiple Base64 chunks. Thanks to Rakesh Banka for
434 finding this bug and submitting a patch.
436 2008-10-08 Bob Halley <halley@dnspython.org>
438 * Add entropy module.
440 * When validating TSIGs, we need to use the absolute name.
442 2008-06-03 Bob Halley <halley@dnspython.org>
444 * dns/message.py (Message.set_rcode): The mask used preserved the
445 extended rcode, instead of everything else in ednsflags.
447 * dns/message.py (Message.use_edns): ednsflags was not kept
448 coherent with the specified edns version.
450 2008-02-06 Bob Halley <halley@dnspython.org>
452 * dns/ipv6.py (inet_aton): We could raise an exception other than
453 dns.exception.SyntaxError in some cases.
455 * dns/tsig.py: Raise an exception when the peer has set a non-zero
458 2007-11-25 Bob Halley <halley@dnspython.org>
460 * (Version 1.6.0 released)
462 2007-11-25 Bob Halley <halley@dnspython.org>
464 * dns/query.py (_wait_for): if select() raises an exception due to
465 EINTR, we should just select() again.
467 2007-06-13 Bob Halley <halley@dnspython.org>
469 * dns/inet.py: Added is_multicast().
471 * dns/query.py (udp): If the queried address is a multicast address, then
472 don't check that the address of the response is the same as the address
475 2007-05-24 Bob Halley <halley@dnspython.org>
477 * dns/rdtypes/IN/NAPTR.py: NAPTR comparisons didn't compare the
478 preference field due to a typo.
480 2007-02-07 Bob Halley <halley@dnspython.org>
482 * dns/resolver.py: Integrate code submitted by Paul Marks to
483 determine whether a Windows NIC is enabled. The way dnspython
484 used to do this does not work on Windows Vista.
486 2006-12-10 Bob Halley <halley@dnspython.org>
488 * (Version 1.5.0 released)
490 2006-11-03 Bob Halley <halley@dnspython.org>
492 * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type.
494 2006-11-02 Bob Halley <halley@dnspython.org>
496 * dns/query.py (udp): Messages from unexpected sources can now be
497 ignored by setting ignore_unexpected to True.
499 2006-10-31 Bob Halley <halley@dnspython.org>
501 * dns/query.py (udp): When raising UnexpectedSource, add more
502 detail about what went wrong to the exception.
504 2006-09-22 Bob Halley <halley@dnspython.org>
506 * dns/message.py (Message.use_edns): add reasonable defaults for
507 the ednsflags, payload, and request_payload parameters.
509 * dns/message.py (Message.want_dnssec): add a convenience method for
510 enabling/disabling the "DNSSEC desired" flag in requests.
512 * dns/message.py (make_query): add "use_edns" and "want_dnssec"
515 2006-08-17 Bob Halley <halley@dnspython.org>
517 * dns/resolver.py (Resolver.read_resolv_conf): If /etc/resolv.conf
518 doesn't exist, just use the default resolver configuration (i.e.
519 the same thing we would have used if resolv.conf had existed and
522 2006-07-26 Bob Halley <halley@dnspython.org>
524 * dns/resolver.py (Resolver._config_win32_fromkey): fix
525 cut-and-paste error where we passed the wrong variable to
526 self._config_win32_search(). Thanks to David Arnold for finding
527 the bug and submitting a patch.
529 2006-07-20 Bob Halley <halley@dnspython.org>
531 * dns/resolver.py (Answer): Add more support for the sequence
532 protocol, forwarding requests to the answer object's rrset.
533 E.g. "for a in answer" is equivalent to "for a in answer.rrset",
534 "answer[i]" is equivalent to "answer.rrset[i]", and
535 "answer[i:j]" is equivalent to "answer.rrset[i:j]".
537 2006-07-19 Bob Halley <halley@dnspython.org>
539 * dns/query.py (xfr): Add IXFR support.
541 2006-06-22 Bob Halley <halley@dnspython.org>
543 * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type.
545 2006-06-21 Bob Halley <halley@dnspython.org>
547 * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type.
549 2006-06-02 Bob Halley <halley@dnspython.org>
551 * (Version 1.4.0 released)
553 2006-04-25 Bob Halley <halley@dnspython.org>
555 * dns/rrset.py (RRset.to_rdataset): Added a convenience method
556 to convert an rrset into an rdataset.
558 2006-03-27 Bob Halley <halley@dnspython.org>
560 * Added dns.e164.query(). This function can be used to look for
561 NAPTR RRs for a specified number in several domains, e.g.:
563 dns.e164.query('16505551212',
564 ['e164.dnspython.org.', 'e164.arpa.'])
566 2006-03-26 Bob Halley <halley@dnspython.org>
568 * dns/resolver.py (Resolver.query): The resolver deleted from
569 a list while iterating it, which makes the iterator unhappy.
571 2006-03-17 Bob Halley <halley@dnspython.org>
573 * dns/resolver.py (Resolver.query): The resolver needlessly
574 delayed responses for successful queries.
576 2006-01-18 Bob Halley <halley@dnspython.org>
578 * dns/rdata.py: added a validate() method to the rdata class. If
579 you change an rdata by assigning to its fields, it is a good
580 idea to call validate() when you are done making changes.
581 For example, if 'r' is an MX record and then you execute:
583 r.preference = 100000 # invalid, because > 65535
586 The validation will fail and an exception will be raised.
588 2006-01-11 Bob Halley <halley@dnspython.org>
590 * dns/ttl.py: TTLs are now bounds checked to be within the closed
591 interval [0, 2^31 - 1].
593 * The BIND 8 TTL syntax is now accepted in the SOA refresh, retry,
594 expire, and minimum fields, and in the original_ttl field of
595 SIG and RRSIG records.
597 2006-01-04 Bob Halley <halley@dnspython.org>
599 * dns/resolver.py: The windows registry irritatingly changes the
600 list element delimiter in between ' ' and ',' (and vice-versa)
601 in various versions of windows. We now cope by always looking
602 for either one (' ' first).
604 2005-12-27 Bob Halley <halley@dnspython.org>
606 * dns/e164.py: Added routines to convert between E.164 numbers and
607 their ENUM domain name equivalents.
609 * dns/reversename.py: Added routines to convert between IPv4 and
610 IPv6 addresses and their DNS reverse-map equivalents.
612 2005-12-18 Bob Halley <halley@dnspython.org>
614 * dns/rdtypes/ANY/LOC.py (_tuple_to_float): The sign was lost when
615 converting a tuple into a float, which broke conversions of
616 south latitudes and west longitudes.
618 2005-11-17 Bob Halley <halley@dnspython.org>
620 * dns/zone.py: The 'origin' parameter to from_text() and from_file()
621 is now optional. If not specified, dnspython will use the
622 first $ORIGIN in the text as the zone's origin.
624 * dns/zone.py: Sanity checks of the zone's origin node can now
627 2005-11-12 Bob Halley <halley@dnspython.org>
629 * dns/name.py: Preliminary Unicode support has been added for
630 domain names. Running dns.name.from_text() on a Unicode string
631 will now encode each label using the IDN ACE encoding. The
632 to_unicode() method may be used to convert a dns.name.Name with
633 IDN ACE labels back into a Unicode string. This functionality
634 requires Python 2.3 or greater.
636 2005-10-31 Bob Halley <halley@dnspython.org>
638 * (Version 1.3.5 released)
640 2005-10-12 Bob Halley <halley@dnspython.org>
642 * dns/zone.py: Zone.iterate_rdatasets() and Zone.iterate_rdatas()
643 did not have a default rdtype of dns.rdatatype.ANY as their
644 docstrings said they did. They do now.
646 2005-10-06 Bob Halley <halley@dnspython.org>
648 * dns/name.py: Added the parent() method, which returns the
651 2005-10-01 Bob Halley <halley@dnspython.org>
653 * dns/resolver.py: Added zone_for_name() helper, which returns
654 the name of the zone which contains the specified name.
656 * dns/resolver.py: Added get_default_resolver(), which returns
657 the default resolver, initializing it if necessary.
659 2005-09-29 Bob Halley <halley@dnspython.org>
661 * dns/resolver.py (Resolver._compute_timeout): If time goes
662 backwards a little bit, ignore it.
664 2005-07-31 Bob Halley <halley@dnspython.org>
666 * (Version 1.3.4 released)
668 2005-07-31 Bob Halley <halley@dnspython.org>
670 * dns/message.py (make_response): Trying to respond to a response
671 threw a NameError while trying to throw a FormErr since it used
672 the wrong name for the FormErr exception.
674 * dns/query.py (_connect): We needed to ignore EALREADY too.
676 * dns/query.py: Optional "source" and "source_port" parameters
677 have been added to udp(), tcp(), and xfr(). Thanks to Ralf
678 Weber for suggesting the change and providing a patch.
680 2005-06-05 Bob Halley <halley@dnspython.org>
682 * dns/query.py: The requirement that the "where" parameter be
683 an IPv4 or IPv6 address is now documented.
685 2005-06-04 Bob Halley <halley@dnspython.org>
687 * dns/resolver.py: The resolver now does exponential backoff
688 each time it runs through all of the nameservers.
690 * dns/resolver.py: rcodes which indicate a nameserver is likely
691 to be a "permanent failure" for a query cause the nameserver
692 to be removed from the mix for that query.
694 2005-01-30 Bob Halley <halley@dnspython.org>
696 * (Version 1.3.3 released)
698 2004-10-25 Bob Halley <halley@dnspython.org>
700 * dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
701 incorrectly rejected TXT records where a value was not quoted.
703 2004-10-11 Bob Halley <halley@dnspython.org>
705 * dns/message.py: Added make_response(), which creates a skeletal
706 response for the specified query. Added opcode() and set_opcode()
707 convenience methods to the Message class. Added the request_payload
708 attribute to the Message class.
710 2004-10-10 Bob Halley <halley@dnspython.org>
712 * dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
713 mode incorrectly set zone.origin to the empty name.
715 2004-09-02 Bob Halley <halley@dnspython.org>
717 * dns/name.py (Name.to_wire): The 'file' parameter to
718 Name.to_wire() is now optional; if omitted, the wire form will
719 be returned as the value of the function.
721 2004-08-14 Bob Halley <halley@dnspython.org>
723 * dns/message.py (Message.find_rrset): find_rrset() now uses an
724 index, vastly improving the from_wire() performance of large
725 messages such as zone transfers.
727 2004-08-07 Bob Halley <halley@dnspython.org>
729 * (Version 1.3.2 released)
731 2004-08-04 Bob Halley <halley@dnspython.org>
733 * dns/query.py: sending queries to a nameserver via IPv6 now
736 * dns/inet.py (af_for_address): Add af_for_address(), which looks
737 at a textual-form address and attempts to determine which address
740 * dns/query.py: the default for the 'af' parameter of the udp(),
741 tcp(), and xfr() functions has been changed from AF_INET to None,
742 which causes dns.inet.af_for_address() to be used to determine the
743 address family. If dns.inet.af_for_address() can't figure it out,
744 we fall back to AF_INET and hope for the best.
746 2004-07-31 Bob Halley <halley@dnspython.org>
748 * dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
749 does not allow specifying types by number, so we shouldn't either.
751 * dns/renderer.py: the renderer module didn't import random,
752 causing an exception to be raised if a query id wasn't provided
753 when a Renderer was created.
755 * dns/resolver.py (Resolver.query): the resolver wasn't catching
756 dns.exception.Timeout, so a timeout erroneously caused the whole
757 resolution to fail instead of just going on to the next server.
759 2004-06-16 Bob Halley <halley@dnspython.org>
761 * dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
762 were converted incorrectly if the length of the milliseconds
763 string was less than 3.
765 2004-06-06 Bob Halley <halley@dnspython.org>
767 * (Version 1.3.1 released)
769 2004-05-22 Bob Halley <halley@dnspython.org>
771 * dns/update.py (Update.delete): We erroneously specified a
772 "deleting" value of dns.rdatatype.NONE instead of
773 dns.rdataclass.NONE when the thing being deleted was either an
774 Rdataset instance or an Rdata instance.
776 * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
779 2004-05-14 Bob Halley <halley@dnspython.org>
781 * dns/rdata.py (from_text): The masterfile reader did not
782 accept the unknown RR syntax when used with a known RR type.
784 2004-05-08 Bob Halley <halley@dnspython.org>
786 * dns/name.py (from_text): dns.name.from_text() did not raise
787 an exception if a backslash escape ended prematurely.
789 2004-04-09 Bob Halley <halley@dnspython.org>
791 * dns/zone.py (_MasterReader._rr_line): The masterfile reader
792 erroneously treated lines starting with leading whitespace but
793 not having any RR definition as an error. It now treats
794 them like a blank line (which is not an error).
796 2004-04-01 Bob Halley <halley@dnspython.org>
798 * (Version 1.3.0 released)
800 2004-03-19 Bob Halley <halley@dnspython.org>
802 * Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
804 2004-01-16 Bob Halley <halley@dnspython.org>
806 * dns/query.py (_connect): Windows returns EWOULDBLOCK instead
807 of EINPROGRESS when trying to connect a nonblocking socket.
809 2003-11-13 Bob Halley <halley@dnspython.org>
811 * dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
812 incorrectly, since we were interpreting the values of altitiude,
813 size, hprec, and vprec in meters instead of centimeters.
815 * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
816 encoded with just one octet, not two!
818 2003-11-09 Bob Halley <halley@dnspython.org>
820 * dns/resolver.py (Cache.maybe_clean): The cleaner deleted items
821 from the dictionary while iterating it, causing a RuntimeError
822 to be raised. Thanks to Mark R. Levinson for the bug report,
823 regression test, and fix.
825 2003-11-07 Bob Halley <halley@dnspython.org>
827 * (Version 1.2.0 released)
829 2003-11-03 Bob Halley <halley@dnspython.org>
831 * dns/zone.py (_MasterReader.read): The saved_state now includes
834 2003-11-01 Bob Halley <halley@dnspython.org>
836 * dns/tokenizer.py (Tokenizer.get): The tokenizer didn't
837 handle escaped delimiters.
839 2003-10-27 Bob Halley <halley@dnspython.org>
841 * dns/resolver.py (Resolver.read_resolv_conf): If no nameservers
842 are configured in /etc/resolv.conf, the default nameserver
843 list should be ['127.0.0.1'].
845 2003-09-08 Bob Halley <halley@dnspython.org>
847 * dns/resolver.py (Resolver._config_win32_fromkey): We didn't
848 catch WindowsError, which can happen if a key is not defined
851 2003-09-06 Bob Halley <halley@dnspython.org>
853 * (Version 1.2.0b1 released)
855 2003-09-05 Bob Halley <halley@dnspython.org>
857 * dns/query.py: Timeout support has been overhauled to provide
858 timeouts under Python 2.2 as well as 2.3, and to provide more
861 2003-08-30 Bob Halley <halley@dnspython.org>
863 * dns/zone.py: dns.exception.SyntaxError is raised for unknown
864 master file directives.
866 2003-08-28 Bob Halley <halley@dnspython.org>
868 * dns/zone.py: $INCLUDE processing is now enabled/disabled using
869 the allow_include parameter. The default is to process $INCLUDE
870 for from_file(), and to disallow $INCLUDE for from_text(). The
871 master reader now calls zone.check_origin_node() by default after
872 the zone has been read. find_rdataset() called get_node() instead
873 of find_node(), which result in an incorrect exception. The
874 relativization state of a zone is now remembered and applied
875 consistently when looking up names. from_xfr() now supports
876 relativization like the _MasterReader.
878 2003-08-22 Bob Halley <halley@dnspython.org>
880 * dns/zone.py: The _MasterReader now understands $INCLUDE.
882 2003-08-12 Bob Halley <halley@dnspython.org>
884 * dns/zone.py: The _MasterReader now specifies the file and line
885 number when a syntax error occurs. The BIND 8 TTL format is now
886 understood when loading a zone, though it will never be emitted.
887 The from_file() function didn't pass the zone_factory parameter
890 2003-08-10 Bob Halley <halley@dnspython.org>
892 * (Version 1.1.0 released)
894 2003-08-07 Bob Halley <halley@dnspython.org>
896 * dns/update.py (Update._add): A typo meant that _add would
897 fail if the thing being added was an Rdata object (as
898 opposed to an Rdataset or the textual form of an Rdata).
900 2003-08-05 Bob Halley <halley@dnspython.org>
902 * dns/set.py: the simple Set class has been moved to its
903 own module, and augmented to support more set operations.
905 2003-08-04 Bob Halley <halley@dnspython.org>
907 * Node and all rdata types have been "slotted". This speeds
908 things up a little and reduces memory usage noticeably.
910 2003-08-02 Bob Halley <halley@dnspython.org>
912 * (Version 1.1.0c1 released)
914 2003-08-02 Bob Halley <halley@dnspython.org>
916 * dns/rdataset.py: SimpleSets now support more set options.
918 * dns/message.py: Added the get_rrset() method. from_file() now
919 allows Unicode filenames and turns on universal newline support if
920 it opens the file itself.
922 * dns/node.py: Added the delete_rdataset() and replace_rdataset()
925 * dns/zone.py: Added the delete_node(), delete_rdataset(), and
926 replace_rdataset() methods. from_file() now allows Unicode
927 filenames and turns on universal newline support if it opens the
928 file itself. Added a to_file() method.
930 2003-08-01 Bob Halley <halley@dnspython.org>
932 * dns/opcode.py: Opcode from/to text converters now understand
933 numeric opcodes. The to_text() method will return a numeric opcode
934 string if it doesn't know a text name for the opcode.
936 * dns/message.py: Added set_rcode(). Fixed code where ednsflags
937 wasn't treated as a long.
939 * dns/rcode.py: ednsflags wasn't treated as a long. Rcode from/to
940 text converters now understand numeric rcodes. The to_text()
941 method will return a numeric rcode string if it doesn't know
942 a text name for the rcode.
944 * examples/reverse.py: Added a new example program that builds a
945 reverse (address-to-name) mapping table from the name-to-address
946 mapping specified by A RRs in zone files.
948 * dns/node.py: Added get_rdataset() method.
950 * dns/zone.py: Added get_rdataset() and get_rrset() methods. Added
953 2003-07-31 Bob Halley <halley@dnspython.org>
955 * dns/zone.py: Added the iterate_rdatasets() method which returns
956 a generator which yields (name, rdataset) tuples for all the
957 rdatasets in the zone matching the specified rdatatype.
959 2003-07-30 Bob Halley <halley@dnspython.org>
961 * (Version 1.1.0b2 released)
963 2003-07-30 Bob Halley <halley@dnspython.org>
965 * dns/zone.py: Added find_rrset() and find_rdataset() convenience
966 methods. They let you retrieve rdata with the specified name
967 and type in one call.
969 * dns/node.py: Nodes no longer have names; owner names are
970 associated with nodes in the Zone object's nodes dictionary.
972 * dns/zone.py: Zone objects now implement more of the standard
973 mapping interface. __iter__ has been changed to iterate the keys
974 rather than values to match the standard mapping interface's
977 2003-07-20 Bob Halley <halley@dnspython.org>
979 * dns/ipv6.py (inet_ntoa): Handle embedded IPv4 addresses.
981 2003-07-19 Bob Halley <halley@dnspython.org>
983 * (Version 1.1.0b1 released)
985 2003-07-18 Bob Halley <halley@dnspython.org>
987 * dns/tsig.py: The TSIG validation of TCP streams where not
988 every message is signed now works correctly.
990 * dns/zone.py: Zones can now be compared for equality and
991 inequality. If the other object in the comparison is also
992 a zone, then "the right thing" happens; i.e. the zones are
993 equal iff.: they have the same rdclass, origin, and nodes.
995 2003-07-17 Bob Halley <halley@dnspython.org>
997 * dns/message.py (Message.use_tsig): The method now allows for
998 greater control over the various fields in the generated signature
1000 (_WireReader._get_section): UnknownTSIGKey is now raised if an
1001 unknown key is encountered, or if a signed message has no keyring.
1003 2003-07-16 Bob Halley <halley@dnspython.org>
1005 * dns/tokenizer.py (Tokenizer._get_char): get_char and unget_char
1006 have been renamed to _get_char and _unget_char since they are not
1007 useful to clients of the tokenizer.
1009 2003-07-15 Bob Halley <halley@dnspython.org>
1011 * dns/zone.py (_MasterReader._rr_line): owner names were being
1012 unconditionally relativized; it makes much more sense for them
1013 to be relativized according to the relativization setting of
1016 2003-07-12 Bob Halley <halley@dnspython.org>
1018 * dns/resolver.py (Resolver.read_resolv_conf): The resolv.conf
1019 parser did not allow blank / whitespace-only lines, nor did it
1020 allow comments. Both are now supported.
1022 2003-07-11 Bob Halley <halley@dnspython.org>
1024 * dns/name.py (Name.to_digestable): to_digestable() now
1025 requires an origin to be specified if the name is relative.
1026 It will raise NeedAbsoluteNameOrOrigin if the name is
1027 relative and there is either no origin or the origin is
1029 (Name.split): returned the wrong answer if depth was 0 or depth
1030 was the length of the name. split() now does bounds checking
1031 on depth, and raises ValueError if depth < 0 or depth > the length
1034 2003-07-10 Bob Halley <halley@dnspython.org>
1036 * dns/ipv6.py (inet_ntoa): The routine now minimizes its output
1037 strings. E.g. the IPv6 address
1038 "0000:0000:0000:0000:0000:0000:0000:0001" is minimized to "::1".
1039 We do not, however, make any effort to display embedded IPv4
1040 addresses in the dot-quad notation.
1042 2003-07-09 Bob Halley <halley@dnspython.org>
1044 * dns/inet.py: We now supply our own AF_INET and AF_INET6
1045 constants since AF_INET6 may not always be available. If the
1046 socket module has AF_INET6, we will use it. If not, we will
1047 use our own value for the constant.
1049 * dns/query.py: the functions now take an optional af argument
1050 specifying the address family to use when creating the socket.
1052 * dns/rdatatype.py (is_metatype): a typo caused the function
1053 return true only for type OPT.
1055 * dns/message.py: message section list elements are now RRsets
1056 instead of Nodes. This API change makes processing messages
1057 easier for many applications.
1059 2003-07-07 Bob Halley <halley@dnspython.org>
1061 * dns/rrset.py: added. An RRset is a named rdataset.
1063 * dns/rdataset.py (Rdataset.__eq__): rdatasets may now be compared
1064 for equality and inequality with other objects. Rdataset instance
1065 variables are now slotted.
1067 * dns/message.py: The wire format and text format readers are now
1068 classes. Variables related to reader state have been moved out
1069 of the message class.
1071 2003-07-06 Bob Halley <halley@dnspython.org>
1073 * dns/name.py (from_text): '@' was not interpreted as the empty
1076 * dns/zone.py: the master file reader derelativized names in rdata
1077 relative to the zone's origin, not relative to the current origin.
1078 The reader now deals with relativization in two steps. The rdata
1079 is read and derelativized using the current origin. The rdata's
1080 relativity is then chosen using the zone origin and the relativize
1081 boolean. Here's an example.
1083 $ORIGIN foo.example.
1087 If the zone origin is example., and relativization is on, then
1088 This fragment will become:
1090 bar.foo.example. 300 IN MX 0 blaz.foo.example.
1092 after the first step (derelativization to current origin), and
1094 bar.foo 300 IN MX 0 blaz.foo
1096 after the second step (relativiation to zone origin).
1098 * dns/namedict.py: added.
1100 * dns/zone.py: The master file reader has been made into its
1101 own class. Reader-related instance variables have been moved
1102 form the zone class into the reader class.
1104 * dns/zone.py: Add node_factory class attribute. An application
1105 can now subclass Zone and Node and have a zone whose nodes are of
1106 the subclassed Node type. The from_text(), from_file(), and
1107 from_xfr() algorithms now take an optional zone_factory argument.
1108 This allows the algorithms to be used to create zones whose class
1109 is a subclass of Zone.
1112 2003-07-04 Bob Halley <halley@dnspython.org>
1114 * dns/renderer.py: added new wire format rendering module and
1115 converted message.py to use it. Applications which want
1116 fine-grained control over the conversion to wire format may call
1117 the renderer directy, instead of having it called on their behalf
1118 by the message code.
1120 2003-07-02 Bob Halley <halley@dnspython.org>
1122 * dns/name.py (_validate_labels): The NameTooLong test was
1125 * dns/message.py (Message.to_wire): dns.exception.TooBig is
1126 now raised if the wire encoding exceeds the specified
1129 2003-07-01 Bob Halley <halley@dnspython.org>
1131 * dns/message.py: EDNS encoding was broken. from_text()
1132 didn't parse rcodes, flags, or eflags correctly. Comparing
1133 messages with other types of objects didn't work.
1135 2003-06-30 Bob Halley <halley@dnspython.org>
1137 * (Version 1.0.0 released)
1139 2003-06-30 Bob Halley <halley@dnspython.org>
1141 * dns/rdata.py: Rdatas now implement rich comparisons instead of
1144 * dns/name.py: Names now implement rich comparisons instead of
1147 * dns/inet.py (inet_ntop): Always use our code, since the code
1148 in the socket module doesn't support AF_INET6 conversions if
1149 IPv6 sockets are not available on the system.
1151 * dns/resolver.py (Answer.__init__): A dangling CNAME chain was
1152 not raising NoAnswer.
1154 * Added a simple resolver Cache class.
1156 * Added an expiration attribute to answer instances.
1158 2003-06-24 Bob Halley <halley@dnspython.org>
1160 * (Version 1.0.0b3 released)
1162 2003-06-24 Bob Halley <halley@dnspython.org>
1164 * Renamed module "DNS" to "dns" to avoid conflicting with
1167 2003-06-23 Bob Halley <halley@dnspython.org>
1169 * The from_text() relativization controls now work the same way as
1170 the to_text() controls.
1172 * DNS/rdata.py: The parsing of generic rdata was broken.
1174 2003-06-21 Bob Halley <halley@dnspython.org>
1176 * (Version 1.0.0b2 released)
1178 2003-06-21 Bob Halley <halley@dnspython.org>
1180 * The Python 2.2 socket.inet_aton() doesn't seem to like
1181 '255.255.255.255'. We work around this.
1183 * Fixed bugs in rdata to_wire() and from_wire() routines of a few
1184 types. These bugs were discovered by running the tests/zone.py
1187 * Added implementation of type APL.
1189 2003-06-20 Bob Halley <halley@dnspython.org>
1191 * DNS/rdtypes/IN/AAAA.py: Use our own versions of inet_ntop and
1192 inet_pton if the socket module doesn't provide them for us.
1194 * The resolver now does a better job handling exceptions. In
1195 particular, it no longer eats all exceptions; rather it handles
1196 those exceptions it understands, and leaves the rest uncaught.
1198 * Exceptions have been pulled into their own module. Almost all
1199 exceptions raised by the code are now subclasses of
1200 DNS.exception.DNSException. All form errors are subclasses of
1201 DNS.exception.FormError (which is itself a subclass of
1202 DNS.exception.DNSException).
1204 2003-06-19 Bob Halley <halley@dnspython.org>
1206 * Added implementations of types DS, NXT, SIG, and WKS.
1208 * __cmp__ for type A and AAAA could produce incorrect results.
1210 2003-06-18 Bob Halley <halley@dnspython.org>
1212 * Started test suites for zone.py and tokenizer.py.
1214 * Added implementation of type KEY.
1216 * DNS/rdata.py(_base64ify): \n could be emitted erroneously.
1218 * DNS/rdtypes/ANY/SOA.py (SOA.from_text): The SOA RNAME field could
1219 be set to the value of MNAME in common cases.
1221 * DNS/rdtypes/ANY/X25.py: __init__ was broken.
1223 * DNS/zone.py (from_text): $TTL handling erroneously caused the
1224 next line to be eaten.
1226 * DNS/tokenizer.py (Tokenizer.get): parsing was broken for empty
1227 quoted strings. Quoted strings didn't handle \ddd escapes. Such
1228 escapes are appear not to comply with RFC 1035, but BIND allows
1229 them and they seem useful, so we allow them too.
1231 * DNS/rdtypes/ANY/ISDN.py (ISDN.from_text): parsing was
1232 broken for ISDN RRs without subaddresses.
1234 * DNS/zone.py (from_file): from_file() didn't work because
1235 some required parameters were not passed to from_text().
1237 2003-06-17 Bob Halley <halley@dnspython.org>
1239 * (Version 1.0.0b1 released)
1241 2003-06-17 Bob Halley <halley@dnspython.org>
1243 * Added implementation of type PX.
1245 2003-06-16 Bob Halley <halley@dnspython.org>
1247 * Added implementation of types CERT, GPOS, LOC, NSAP, NSAP-PTR.
1249 * DNS/rdatatype.py (_by_value): A cut-and-paste error had broken
1252 2003-06-12 Bob Halley <halley@dnspython.org>
1254 * Created a tests directory and started adding tests.
1256 * Added "and its documentation" to the permission grant in the
1259 2003-06-12 Bob Halley <halley@dnspython.org>
1261 * DNS/name.py (Name.is_wild): is_wild() erroneously raised IndexError
1262 if the name was empty.
1264 2003-06-10 Bob Halley <halley@dnspython.org>
1266 * Added implementations of types AFSDB, X25, and ISDN.
1268 * The documentation associated with the various rdata types has been
1269 improved. In particular, instance variables are now described.
1271 2003-06-09 Bob Halley <halley@dnspython.org>
1273 * Added implementations of types HINFO, RP, and RT.
1275 * DNS/message.py (make_query): Document that make_query() sets
1276 flags to DNS.flags.RD, and chooses a random query id.
1278 2003-06-05 Bob Halley <halley@dnspython.org>
1280 * (Version 1.0.0a2 released)
1282 2003-06-05 Bob Halley <halley@dnspython.org>
1284 * DNS/node.py: removed __getitem__ and __setitem__, since
1285 they are not used by the codebase and were not useful in
1288 * DNS/message.py (from_file): from_file() now allows a
1289 filename to be specified instead of a file object.
1291 * DNS/rdataset.py: The is_compatible() method of the
1292 DNS.rdataset.Rdataset class was deleted.
1294 2003-06-04 Bob Halley <halley@dnspython.org>
1296 * DNS/name.py (class Name): Names are now immutable.
1298 * DNS/name.py: the is_comparable() method has been removed, since
1299 names are always comparable.
1301 * DNS/resolver.py (Resolver.query): A query could run for up
1302 to the lifetime + the timeout. This has been corrected and the
1303 query will now only run up to the lifetime.
1305 2003-06-03 Bob Halley <halley@dnspython.org>
1307 * DNS/resolver.py: removed the 'new' function since it is not the
1308 style of the library to have such a function. Call
1309 DNS.resolver.Resolver() to make a new resolver.
1311 2003-06-03 Bob Halley <halley@dnspython.org>
1313 * DNS/resolver.py (Resolver._config_win32_fromkey): The DhcpServer
1314 list is space separated, not comma separated.
1316 2003-06-03 Bob Halley <halley@dnspython.org>
1318 * DNS/update.py: Added an update module to make generating updates
1321 2003-06-03 Bob Halley <halley@dnspython.org>
1323 * Commas were missing in some of the __all__ entries in various
1326 2003-05-30 Bob Halley <halley@dnspython.org>
1328 * (Version 1.0.0a1 released)