1 2011-08-22 Robert Halley <halley@dnspython.org>
3 * dns/resolver.py: Added LRUCache, which allows a maximum number
4 of nodes to be cached, and removes the least-recently used node
5 when adding a new node to a full cache.
7 2011-07-13 Bob Halley <halley@dnspython.org>
9 * dns/resolver.py: dns.resolver.override_system_resolver()
10 overrides the socket module's versions of getaddrinfo(),
11 getnameinfo(), getfqdn(), gethostbyname(), gethostbyname_ex() and
12 gethostbyaddr() with an implementation which uses a dnspython stub
13 resolver instead of the system's stub resolver. This can be
14 useful in testing situations where you want to control the
15 resolution behavior of python code without having to change the
16 system's resolver settings (e.g. /etc/resolv.conf).
17 dns.resolver.restore_system_resolver() undoes the change.
19 2011-07-08 Bob Halley <halley@dnspython.org>
21 * dns/ipv4.py: dnspython now provides its own, stricter, versions
22 of IPv4 inet_ntoa() and inet_aton() instead of using the OS's
25 * dns/ipv6.py: inet_aton() now bounds checks embedded IPv4 addresses
26 more strictly. Also, now only dns.exception.SyntaxError can be
29 2011-04-05 Bob Halley <halley@dnspython.org>
31 * Old DNSSEC types (KEY, NXT, and SIG) have been removed.
33 * Bounds checking of slices in rdata wire processing is now more
34 strict, and bounds errors (e.g. we got less data than was
35 expected) now raise dns.exception.FormError rather than
38 2011-03-28 Bob Halley <halley@dnspython.org>
40 * (Version 1.9.4 released)
42 2011-03-24 Bob Halley <halley@dnspython.org>
44 * dns/rdata.py (Rdata._wire_cmp): We need to specify no
45 compression and an origin to _wire_cmp() in case names in the
46 rdata are relative names.
48 * dns/rdtypes/ANY/SIG.py (SIG._cmp): Add missing 'import struct'.
49 Thanks to Arfrever Frehtes Taifersar Arahesis for reporting the
52 2011-03-24 Bob Halley <halley@dnspython.org>
54 * (Version 1.9.3 released)
56 2011-03-22 Bob Halley <halley@dnspython.org>
58 * dns/resolver.py: a boolean parameter, 'raise_on_no_answer', has
59 been added to the query() methods. In no-error, no-data
60 situations, this parameter determines whether NoAnswer should be
61 raised or not. If True, NoAnswer is raised. If False, then an
62 Answer() object with a None rrset will be returned.
64 * dns/resolver.py: Answer() objects now have a canonical_name field.
66 2011-01-11 Bob Halley <halley@dnspython.org>
68 * Dnspython was erroneously doing case-insensitive comparisons
69 of the names in NSEC and RRSIG RRs. Thanks to Casey Deccio for
72 2010-12-17 Bob Halley <halley@dnspython.org>
74 * dns/message.py (_WireReader._get_section): use "is" and not "=="
75 when testing what section an RR is in. Thanks to James Raftery
76 for reporting this bug.
78 2010-12-10 Bob Halley <halley@dnspython.org>
80 * dns/resolver.py (Resolver.query): disallow metaqueries.
82 * dns/rdata.py (Rdata.__hash__): Added a __hash__ method for rdata.
84 2010-11-23 Bob Halley <halley@dnspython.org>
86 * (Version 1.9.2 released)
88 2010-11-23 Bob Halley <halley@dnspython.org>
90 * dns/dnssec.py (_need_pycrypto): DSA and RSA are modules, not
91 functions, and I didn't notice because the test suite masked
94 2010-11-22 Bob Halley <halley@dnspython.org>
96 * (Version 1.9.1 released)
98 2010-11-22 Bob Halley <halley@dnspython.org>
100 * dns/dnssec.py: the "from" style import used to get DSA from
101 PyCrypto trashed a DSA constant. Now a normal import is used
102 to avoid namespace contamination.
104 2010-11-20 Bob Halley <halley@dnspython.org>
106 * (Version 1.9.0 released)
108 2010-11-07 Bob Halley <halley@dnspython.org>
110 * dns/dnssec.py: Added validate() to do basic DNSSEC validation
111 (requires PyCrypto). Thanks to Brian Wellington for the patch.
113 * dns/hash.py: Hash compatibility handling is now its own module.
115 2010-10-31 Bob Halley <halley@dnspython.org>
117 * dns/resolver.py (zone_for_name): A query name resulting in a
118 CNAME or DNAME response to a node which had an SOA was incorrectly
119 treated as a zone origin. In these cases, we should just look
120 higher. Thanks to Gert Berger for reporting this problem.
122 * Added zonediff.py to examples. This program compares two zones
123 and shows the differences either in diff-like plain text, or
124 HTML. Thanks to Dennis Kaarsemaker for contributing this
127 2010-10-27 Bob Halley <halley@dnspython.org>
129 * Incorporate a patch to use poll() instead of select() by
130 default on platforms which support it. Thanks to
131 Peter Schüller and Spotify for the contribution.
133 2010-10-17 Bob Halley <halley@dnspython.org>
135 * Python prior to 2.5.2 doesn't compute the correct values for
136 HMAC-SHA384 and HMAC-SHA512. We now detect attempts to use
137 them and raise NotImplemented if the Python version is too old.
138 Thanks to Kevin Chen for reporting the problem.
140 * Various routines that took the string forms of rdata types and
141 classes did not permit the strings to be Unicode strings.
142 Thanks to Ryan Workman for reporting the issue.
144 * dns/tsig.py: Added symbolic constants for the algorithm strings.
145 E.g. you can now say dns.tsig.HMAC_MD5 instead of
146 "HMAC-MD5.SIG-ALG.REG.INT". Thanks to Cillian Sharkey for
147 suggesting this improvement.
149 * dns/tsig.py (get_algorithm): fix hashlib compatibility; thanks to
150 Kevin Chen for the patch.
152 * dns/dnssec.py: Added key_id() and make_ds().
154 * dns/message.py: message.py needs to import dns.edns since it uses
157 2010-05-04 Bob Halley <halley@dnspython.org>
159 * dns/rrset.py (RRset.__init__): "covers" was not passed to the
160 superclass __init__(). Thanks to Shanmuga Rajan for reporting
163 2010-03-10 Bob Halley <halley@dnspython.org>
165 * The TSIG algorithm value was passed to use_tsig() incorrectly
166 in some cases. Thanks to 'ducciovigolo' for reporting the problem.
168 2010-01-26 Bob Halley <halley@dnspython.org>
170 * (Version 1.8.0 released)
172 2010-01-13 Bob Halley <halley@dnspython.org>
174 * dns/dnssec.py: Added RSASHA256 and RSASHA512 codepoints; added
175 other missing codepoints to _algorithm_by_text.
177 2010-01-12 Bob Halley <halley@dnspython.org>
179 * Escapes in masterfiles now work correctly. Previously they were
180 only working correctly when the text involved was part of a domain
183 * dns/tokenizer.py: The tokenizer's get() method now returns Token
184 objects, not (type, text) tuples.
186 2009-11-13 Bob Halley <halley@dnspython.org>
188 * Support has been added for hmac-sha1, hmac-sha224, hmac-sha256,
189 hmac-sha384 and hmac-sha512. Thanks to Kevin Chen for a
190 thoughtful, high quality patch.
192 * dns/update.py (Update::present): A zero TTL was not added if
193 present() was called with a single rdata, causing _add() to be
194 unhappy. Thanks to Eugene Kim for reporting the problem and
197 * dns/entropy.py: Use os.urandom() if present. Don't seed until
198 someone wants randomness.
200 2009-09-16 Bob Halley <halley@dnspython.org>
202 * dns/entropy.py: The entropy module needs locking in order to be
203 used safely in a multithreaded environment. Thanks to Beda Kosata
204 for reporting the problem.
206 2009-07-27 Bob Halley <halley@dnspython.org>
208 * dns/query.py (xfr): The socket was not set to nonblocking mode.
209 Thanks to Erik Romijn for reporting this problem.
211 2009-07-23 Bob Halley <halley@dnspython.org>
213 * dns/rdtypes/IN/SRV.py (SRV._cmp): SRV records were compared
214 incorrectly due to a cut-and-paste error. Thanks to Tommie
215 Gannert for reporting this bug.
217 * dns/e164.py (query): The resolver parameter was not used.
218 Thanks to Matías Bellone for reporting this bug.
220 2009-06-23 Bob Halley <halley@dnspython.org>
222 * dns/entropy.py (EntropyPool.__init__): open /dev/random unbuffered;
223 there's no need to consume more randomness than we need. Thanks
224 to Brian Wellington for the patch.
226 2009-06-19 Bob Halley <halley@dnspython.org>
228 * (Version 1.7.1 released)
230 2009-06-19 Bob Halley <halley@dnspython.org>
232 * DLV.py was omitted from the kit
234 * Negative prerequisites were not handled correctly in _get_section().
236 2009-06-19 Bob Halley <halley@dnspython.org>
238 * (Version 1.7.0 released)
240 2009-06-19 Bob Halley <halley@dnspython.org>
242 * On Windows, the resolver set the domain incorrectly. Thanks
243 to Brandon Carpenter for reporting this bug.
245 * Added a to_digestable() method to rdata classes; it returns the
246 digestable form (i.e. DNSSEC canonical form) of the rdata. For
247 most rdata types this is the same uncompressed wire form. For
248 certain older DNS RR types, however, domain names in the rdata
251 * Added support for the HIP RR type.
253 2009-06-18 Bob Halley <halley@dnspython.org>
255 * Added support for the DLV RR type.
257 * Added various DNSSEC related constants (e.g. algorithm identifiers,
260 * dns/tsig.py: Added support for BADTRUNC result code.
262 * dns/query.py (udp): When checking that addresses are the same,
263 use the binary form of the address in the comparison. This
264 ensures that we don't treat addresses as different if they have
265 equivalent but differing textual representations. E.g. "1:00::1"
266 and "1::1" represent the same address but are not textually equal.
267 Thanks to Kim Davies for reporting this bug.
269 * The resolver's query() method now has an optional 'source' parameter,
270 allowing the source IP address to be specified. Thanks to
271 Alexander Lind for suggesting the change and sending a patch.
273 * Added NSEC3 and NSEC3PARAM support.
275 2009-06-17 Bob Halley <halley@dnspython.org>
277 * Fixed NSEC.to_text(), which was only printing the last window.
278 Thanks to Brian Wellington for finding the problem and fixing it.
280 2009-03-30 Bob Halley <halley@dnspython.org>
282 * dns/query.py (xfr): Allow UDP IXFRs. Use "one_rr_per_rrset" mode when
285 2009-03-30 Bob Halley <halley@dnspython.org>
287 * Add "one_rr_per_rrset" mode switch to methods which parse
288 messages from wire format (e.g. dns.message.from_wire(),
289 dns.query.udp(), dns.query.tcp()). If set, each RR read is
290 placed in its own RRset (instead of being coalesced).
292 2009-03-30 Bob Halley <halley@dnspython.org>
294 * Added EDNS option support.
296 2008-10-16 Bob Halley <halley@dnspython.org>
298 * dns/rdtypes/ANY/DS.py: The from_text() parser for DS RRs did not
299 allow multiple Base64 chunks. Thanks to Rakesh Banka for
300 finding this bug and submitting a patch.
302 2008-10-08 Bob Halley <halley@dnspython.org>
304 * Add entropy module.
306 * When validating TSIGs, we need to use the absolute name.
308 2008-06-03 Bob Halley <halley@dnspython.org>
310 * dns/message.py (Message.set_rcode): The mask used preserved the
311 extended rcode, instead of everything else in ednsflags.
313 * dns/message.py (Message.use_edns): ednsflags was not kept
314 coherent with the specified edns version.
316 2008-02-06 Bob Halley <halley@dnspython.org>
318 * dns/ipv6.py (inet_aton): We could raise an exception other than
319 dns.exception.SyntaxError in some cases.
321 * dns/tsig.py: Raise an exception when the peer has set a non-zero
324 2007-11-25 Bob Halley <halley@dnspython.org>
326 * (Version 1.6.0 released)
328 2007-11-25 Bob Halley <halley@dnspython.org>
330 * dns/query.py (_wait_for): if select() raises an exception due to
331 EINTR, we should just select() again.
333 2007-06-13 Bob Halley <halley@dnspython.org>
335 * dns/inet.py: Added is_multicast().
337 * dns/query.py (udp): If the queried address is a multicast address, then
338 don't check that the address of the response is the same as the address
341 2007-05-24 Bob Halley <halley@dnspython.org>
343 * dns/rdtypes/IN/NAPTR.py: NAPTR comparisons didn't compare the
344 preference field due to a typo.
346 2007-02-07 Bob Halley <halley@dnspython.org>
348 * dns/resolver.py: Integrate code submitted by Paul Marks to
349 determine whether a Windows NIC is enabled. The way dnspython
350 used to do this does not work on Windows Vista.
352 2006-12-10 Bob Halley <halley@dnspython.org>
354 * (Version 1.5.0 released)
356 2006-11-03 Bob Halley <halley@dnspython.org>
358 * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type.
360 2006-11-02 Bob Halley <halley@dnspython.org>
362 * dns/query.py (udp): Messages from unexpected sources can now be
363 ignored by setting ignore_unexpected to True.
365 2006-10-31 Bob Halley <halley@dnspython.org>
367 * dns/query.py (udp): When raising UnexpectedSource, add more
368 detail about what went wrong to the exception.
370 2006-09-22 Bob Halley <halley@dnspython.org>
372 * dns/message.py (Message.use_edns): add reasonable defaults for
373 the ednsflags, payload, and request_payload parameters.
375 * dns/message.py (Message.want_dnssec): add a convenience method for
376 enabling/disabling the "DNSSEC desired" flag in requests.
378 * dns/message.py (make_query): add "use_edns" and "want_dnssec"
381 2006-08-17 Bob Halley <halley@dnspython.org>
383 * dns/resolver.py (Resolver.read_resolv_conf): If /etc/resolv.conf
384 doesn't exist, just use the default resolver configuration (i.e.
385 the same thing we would have used if resolv.conf had existed and
388 2006-07-26 Bob Halley <halley@dnspython.org>
390 * dns/resolver.py (Resolver._config_win32_fromkey): fix
391 cut-and-paste error where we passed the wrong variable to
392 self._config_win32_search(). Thanks to David Arnold for finding
393 the bug and submitting a patch.
395 2006-07-20 Bob Halley <halley@dnspython.org>
397 * dns/resolver.py (Answer): Add more support for the sequence
398 protocol, forwarding requests to the answer object's rrset.
399 E.g. "for a in answer" is equivalent to "for a in answer.rrset",
400 "answer[i]" is equivalent to "answer.rrset[i]", and
401 "answer[i:j]" is equivalent to "answer.rrset[i:j]".
403 2006-07-19 Bob Halley <halley@dnspython.org>
405 * dns/query.py (xfr): Add IXFR support.
407 2006-06-22 Bob Halley <halley@dnspython.org>
409 * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type.
411 2006-06-21 Bob Halley <halley@dnspython.org>
413 * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type.
415 2006-06-02 Bob Halley <halley@dnspython.org>
417 * (Version 1.4.0 released)
419 2006-04-25 Bob Halley <halley@dnspython.org>
421 * dns/rrset.py (RRset.to_rdataset): Added a convenience method
422 to convert an rrset into an rdataset.
424 2006-03-27 Bob Halley <halley@dnspython.org>
426 * Added dns.e164.query(). This function can be used to look for
427 NAPTR RRs for a specified number in several domains, e.g.:
429 dns.e164.query('16505551212',
430 ['e164.dnspython.org.', 'e164.arpa.'])
432 2006-03-26 Bob Halley <halley@dnspython.org>
434 * dns/resolver.py (Resolver.query): The resolver deleted from
435 a list while iterating it, which makes the iterator unhappy.
437 2006-03-17 Bob Halley <halley@dnspython.org>
439 * dns/resolver.py (Resolver.query): The resolver needlessly
440 delayed responses for successful queries.
442 2006-01-18 Bob Halley <halley@dnspython.org>
444 * dns/rdata.py: added a validate() method to the rdata class. If
445 you change an rdata by assigning to its fields, it is a good
446 idea to call validate() when you are done making changes.
447 For example, if 'r' is an MX record and then you execute:
449 r.preference = 100000 # invalid, because > 65535
452 The validation will fail and an exception will be raised.
454 2006-01-11 Bob Halley <halley@dnspython.org>
456 * dns/ttl.py: TTLs are now bounds checked to be within the closed
457 interval [0, 2^31 - 1].
459 * The BIND 8 TTL syntax is now accepted in the SOA refresh, retry,
460 expire, and minimum fields, and in the original_ttl field of
461 SIG and RRSIG records.
463 2006-01-04 Bob Halley <halley@dnspython.org>
465 * dns/resolver.py: The windows registry irritatingly changes the
466 list element delimiter in between ' ' and ',' (and vice-versa)
467 in various versions of windows. We now cope by always looking
468 for either one (' ' first).
470 2005-12-27 Bob Halley <halley@dnspython.org>
472 * dns/e164.py: Added routines to convert between E.164 numbers and
473 their ENUM domain name equivalents.
475 * dns/reversename.py: Added routines to convert between IPv4 and
476 IPv6 addresses and their DNS reverse-map equivalents.
478 2005-12-18 Bob Halley <halley@dnspython.org>
480 * dns/rdtypes/ANY/LOC.py (_tuple_to_float): The sign was lost when
481 converting a tuple into a float, which broke conversions of
482 south latitudes and west longitudes.
484 2005-11-17 Bob Halley <halley@dnspython.org>
486 * dns/zone.py: The 'origin' parameter to from_text() and from_file()
487 is now optional. If not specified, dnspython will use the
488 first $ORIGIN in the text as the zone's origin.
490 * dns/zone.py: Sanity checks of the zone's origin node can now
493 2005-11-12 Bob Halley <halley@dnspython.org>
495 * dns/name.py: Preliminary Unicode support has been added for
496 domain names. Running dns.name.from_text() on a Unicode string
497 will now encode each label using the IDN ACE encoding. The
498 to_unicode() method may be used to convert a dns.name.Name with
499 IDN ACE labels back into a Unicode string. This functionality
500 requires Python 2.3 or greater.
502 2005-10-31 Bob Halley <halley@dnspython.org>
504 * (Version 1.3.5 released)
506 2005-10-12 Bob Halley <halley@dnspython.org>
508 * dns/zone.py: Zone.iterate_rdatasets() and Zone.iterate_rdatas()
509 did not have a default rdtype of dns.rdatatype.ANY as their
510 docstrings said they did. They do now.
512 2005-10-06 Bob Halley <halley@dnspython.org>
514 * dns/name.py: Added the parent() method, which returns the
517 2005-10-01 Bob Halley <halley@dnspython.org>
519 * dns/resolver.py: Added zone_for_name() helper, which returns
520 the name of the zone which contains the specified name.
522 * dns/resolver.py: Added get_default_resolver(), which returns
523 the default resolver, initializing it if necessary.
525 2005-09-29 Bob Halley <halley@dnspython.org>
527 * dns/resolver.py (Resolver._compute_timeout): If time goes
528 backwards a little bit, ignore it.
530 2005-07-31 Bob Halley <halley@dnspython.org>
532 * (Version 1.3.4 released)
534 2005-07-31 Bob Halley <halley@dnspython.org>
536 * dns/message.py (make_response): Trying to respond to a response
537 threw a NameError while trying to throw a FormErr since it used
538 the wrong name for the FormErr exception.
540 * dns/query.py (_connect): We needed to ignore EALREADY too.
542 * dns/query.py: Optional "source" and "source_port" parameters
543 have been added to udp(), tcp(), and xfr(). Thanks to Ralf
544 Weber for suggesting the change and providing a patch.
546 2005-06-05 Bob Halley <halley@dnspython.org>
548 * dns/query.py: The requirement that the "where" parameter be
549 an IPv4 or IPv6 address is now documented.
551 2005-06-04 Bob Halley <halley@dnspython.org>
553 * dns/resolver.py: The resolver now does exponential backoff
554 each time it runs through all of the nameservers.
556 * dns/resolver.py: rcodes which indicate a nameserver is likely
557 to be a "permanent failure" for a query cause the nameserver
558 to be removed from the mix for that query.
560 2005-01-30 Bob Halley <halley@dnspython.org>
562 * (Version 1.3.3 released)
564 2004-10-25 Bob Halley <halley@dnspython.org>
566 * dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
567 incorrectly rejected TXT records where a value was not quoted.
569 2004-10-11 Bob Halley <halley@dnspython.org>
571 * dns/message.py: Added make_response(), which creates a skeletal
572 response for the specified query. Added opcode() and set_opcode()
573 convenience methods to the Message class. Added the request_payload
574 attribute to the Message class.
576 2004-10-10 Bob Halley <halley@dnspython.org>
578 * dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
579 mode incorrectly set zone.origin to the empty name.
581 2004-09-02 Bob Halley <halley@dnspython.org>
583 * dns/name.py (Name.to_wire): The 'file' parameter to
584 Name.to_wire() is now optional; if omitted, the wire form will
585 be returned as the value of the function.
587 2004-08-14 Bob Halley <halley@dnspython.org>
589 * dns/message.py (Message.find_rrset): find_rrset() now uses an
590 index, vastly improving the from_wire() performance of large
591 messages such as zone transfers.
593 2004-08-07 Bob Halley <halley@dnspython.org>
595 * (Version 1.3.2 released)
597 2004-08-04 Bob Halley <halley@dnspython.org>
599 * dns/query.py: sending queries to a nameserver via IPv6 now
602 * dns/inet.py (af_for_address): Add af_for_address(), which looks
603 at a textual-form address and attempts to determine which address
606 * dns/query.py: the default for the 'af' parameter of the udp(),
607 tcp(), and xfr() functions has been changed from AF_INET to None,
608 which causes dns.inet.af_for_address() to be used to determine the
609 address family. If dns.inet.af_for_address() can't figure it out,
610 we fall back to AF_INET and hope for the best.
612 2004-07-31 Bob Halley <halley@dnspython.org>
614 * dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
615 does not allow specifying types by number, so we shouldn't either.
617 * dns/renderer.py: the renderer module didn't import random,
618 causing an exception to be raised if a query id wasn't provided
619 when a Renderer was created.
621 * dns/resolver.py (Resolver.query): the resolver wasn't catching
622 dns.exception.Timeout, so a timeout erroneously caused the whole
623 resolution to fail instead of just going on to the next server.
625 2004-06-16 Bob Halley <halley@dnspython.org>
627 * dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
628 were converted incorrectly if the length of the milliseconds
629 string was less than 3.
631 2004-06-06 Bob Halley <halley@dnspython.org>
633 * (Version 1.3.1 released)
635 2004-05-22 Bob Halley <halley@dnspython.org>
637 * dns/update.py (Update.delete): We erroneously specified a
638 "deleting" value of dns.rdatatype.NONE instead of
639 dns.rdataclass.NONE when the thing being deleted was either an
640 Rdataset instance or an Rdata instance.
642 * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
645 2004-05-14 Bob Halley <halley@dnspython.org>
647 * dns/rdata.py (from_text): The masterfile reader did not
648 accept the unknown RR syntax when used with a known RR type.
650 2004-05-08 Bob Halley <halley@dnspython.org>
652 * dns/name.py (from_text): dns.name.from_text() did not raise
653 an exception if a backslash escape ended prematurely.
655 2004-04-09 Bob Halley <halley@dnspython.org>
657 * dns/zone.py (_MasterReader._rr_line): The masterfile reader
658 erroneously treated lines starting with leading whitespace but
659 not having any RR definition as an error. It now treats
660 them like a blank line (which is not an error).
662 2004-04-01 Bob Halley <halley@dnspython.org>
664 * (Version 1.3.0 released)
666 2004-03-19 Bob Halley <halley@dnspython.org>
668 * Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
670 2004-01-16 Bob Halley <halley@dnspython.org>
672 * dns/query.py (_connect): Windows returns EWOULDBLOCK instead
673 of EINPROGRESS when trying to connect a nonblocking socket.
675 2003-11-13 Bob Halley <halley@dnspython.org>
677 * dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
678 incorrectly, since we were interpreting the values of altitiude,
679 size, hprec, and vprec in meters instead of centimeters.
681 * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
682 encoded with just one octet, not two!
684 2003-11-09 Bob Halley <halley@dnspython.org>
686 * dns/resolver.py (Cache.maybe_clean): The cleaner deleted items
687 from the dictionary while iterating it, causing a RuntimeError
688 to be raised. Thanks to Mark R. Levinson for the bug report,
689 regression test, and fix.
691 2003-11-07 Bob Halley <halley@dnspython.org>
693 * (Version 1.2.0 released)
695 2003-11-03 Bob Halley <halley@dnspython.org>
697 * dns/zone.py (_MasterReader.read): The saved_state now includes
700 2003-11-01 Bob Halley <halley@dnspython.org>
702 * dns/tokenizer.py (Tokenizer.get): The tokenizer didn't
703 handle escaped delimiters.
705 2003-10-27 Bob Halley <halley@dnspython.org>
707 * dns/resolver.py (Resolver.read_resolv_conf): If no nameservers
708 are configured in /etc/resolv.conf, the default nameserver
709 list should be ['127.0.0.1'].
711 2003-09-08 Bob Halley <halley@dnspython.org>
713 * dns/resolver.py (Resolver._config_win32_fromkey): We didn't
714 catch WindowsError, which can happen if a key is not defined
717 2003-09-06 Bob Halley <halley@dnspython.org>
719 * (Version 1.2.0b1 released)
721 2003-09-05 Bob Halley <halley@dnspython.org>
723 * dns/query.py: Timeout support has been overhauled to provide
724 timeouts under Python 2.2 as well as 2.3, and to provide more
727 2003-08-30 Bob Halley <halley@dnspython.org>
729 * dns/zone.py: dns.exception.SyntaxError is raised for unknown
730 master file directives.
732 2003-08-28 Bob Halley <halley@dnspython.org>
734 * dns/zone.py: $INCLUDE processing is now enabled/disabled using
735 the allow_include parameter. The default is to process $INCLUDE
736 for from_file(), and to disallow $INCLUDE for from_text(). The
737 master reader now calls zone.check_origin_node() by default after
738 the zone has been read. find_rdataset() called get_node() instead
739 of find_node(), which result in an incorrect exception. The
740 relativization state of a zone is now remembered and applied
741 consistently when looking up names. from_xfr() now supports
742 relativization like the _MasterReader.
744 2003-08-22 Bob Halley <halley@dnspython.org>
746 * dns/zone.py: The _MasterReader now understands $INCLUDE.
748 2003-08-12 Bob Halley <halley@dnspython.org>
750 * dns/zone.py: The _MasterReader now specifies the file and line
751 number when a syntax error occurs. The BIND 8 TTL format is now
752 understood when loading a zone, though it will never be emitted.
753 The from_file() function didn't pass the zone_factory parameter
756 2003-08-10 Bob Halley <halley@dnspython.org>
758 * (Version 1.1.0 released)
760 2003-08-07 Bob Halley <halley@dnspython.org>
762 * dns/update.py (Update._add): A typo meant that _add would
763 fail if the thing being added was an Rdata object (as
764 opposed to an Rdataset or the textual form of an Rdata).
766 2003-08-05 Bob Halley <halley@dnspython.org>
768 * dns/set.py: the simple Set class has been moved to its
769 own module, and augmented to support more set operations.
771 2003-08-04 Bob Halley <halley@dnspython.org>
773 * Node and all rdata types have been "slotted". This speeds
774 things up a little and reduces memory usage noticeably.
776 2003-08-02 Bob Halley <halley@dnspython.org>
778 * (Version 1.1.0c1 released)
780 2003-08-02 Bob Halley <halley@dnspython.org>
782 * dns/rdataset.py: SimpleSets now support more set options.
784 * dns/message.py: Added the get_rrset() method. from_file() now
785 allows Unicode filenames and turns on universal newline support if
786 it opens the file itself.
788 * dns/node.py: Added the delete_rdataset() and replace_rdataset()
791 * dns/zone.py: Added the delete_node(), delete_rdataset(), and
792 replace_rdataset() methods. from_file() now allows Unicode
793 filenames and turns on universal newline support if it opens the
794 file itself. Added a to_file() method.
796 2003-08-01 Bob Halley <halley@dnspython.org>
798 * dns/opcode.py: Opcode from/to text converters now understand
799 numeric opcodes. The to_text() method will return a numeric opcode
800 string if it doesn't know a text name for the opcode.
802 * dns/message.py: Added set_rcode(). Fixed code where ednsflags
803 wasn't treated as a long.
805 * dns/rcode.py: ednsflags wasn't treated as a long. Rcode from/to
806 text converters now understand numeric rcodes. The to_text()
807 method will return a numeric rcode string if it doesn't know
808 a text name for the rcode.
810 * examples/reverse.py: Added a new example program that builds a
811 reverse (address-to-name) mapping table from the name-to-address
812 mapping specified by A RRs in zone files.
814 * dns/node.py: Added get_rdataset() method.
816 * dns/zone.py: Added get_rdataset() and get_rrset() methods. Added
819 2003-07-31 Bob Halley <halley@dnspython.org>
821 * dns/zone.py: Added the iterate_rdatasets() method which returns
822 a generator which yields (name, rdataset) tuples for all the
823 rdatasets in the zone matching the specified rdatatype.
825 2003-07-30 Bob Halley <halley@dnspython.org>
827 * (Version 1.1.0b2 released)
829 2003-07-30 Bob Halley <halley@dnspython.org>
831 * dns/zone.py: Added find_rrset() and find_rdataset() convenience
832 methods. They let you retrieve rdata with the specified name
833 and type in one call.
835 * dns/node.py: Nodes no longer have names; owner names are
836 associated with nodes in the Zone object's nodes dictionary.
838 * dns/zone.py: Zone objects now implement more of the standard
839 mapping interface. __iter__ has been changed to iterate the keys
840 rather than values to match the standard mapping interface's
843 2003-07-20 Bob Halley <halley@dnspython.org>
845 * dns/ipv6.py (inet_ntoa): Handle embedded IPv4 addresses.
847 2003-07-19 Bob Halley <halley@dnspython.org>
849 * (Version 1.1.0b1 released)
851 2003-07-18 Bob Halley <halley@dnspython.org>
853 * dns/tsig.py: The TSIG validation of TCP streams where not
854 every message is signed now works correctly.
856 * dns/zone.py: Zones can now be compared for equality and
857 inequality. If the other object in the comparison is also
858 a zone, then "the right thing" happens; i.e. the zones are
859 equal iff.: they have the same rdclass, origin, and nodes.
861 2003-07-17 Bob Halley <halley@dnspython.org>
863 * dns/message.py (Message.use_tsig): The method now allows for
864 greater control over the various fields in the generated signature
866 (_WireReader._get_section): UnknownTSIGKey is now raised if an
867 unknown key is encountered, or if a signed message has no keyring.
869 2003-07-16 Bob Halley <halley@dnspython.org>
871 * dns/tokenizer.py (Tokenizer._get_char): get_char and unget_char
872 have been renamed to _get_char and _unget_char since they are not
873 useful to clients of the tokenizer.
875 2003-07-15 Bob Halley <halley@dnspython.org>
877 * dns/zone.py (_MasterReader._rr_line): owner names were being
878 unconditionally relativized; it makes much more sense for them
879 to be relativized according to the relativization setting of
882 2003-07-12 Bob Halley <halley@dnspython.org>
884 * dns/resolver.py (Resolver.read_resolv_conf): The resolv.conf
885 parser did not allow blank / whitespace-only lines, nor did it
886 allow comments. Both are now supported.
888 2003-07-11 Bob Halley <halley@dnspython.org>
890 * dns/name.py (Name.to_digestable): to_digestable() now
891 requires an origin to be specified if the name is relative.
892 It will raise NeedAbsoluteNameOrOrigin if the name is
893 relative and there is either no origin or the origin is
895 (Name.split): returned the wrong answer if depth was 0 or depth
896 was the length of the name. split() now does bounds checking
897 on depth, and raises ValueError if depth < 0 or depth > the length
900 2003-07-10 Bob Halley <halley@dnspython.org>
902 * dns/ipv6.py (inet_ntoa): The routine now minimizes its output
903 strings. E.g. the IPv6 address
904 "0000:0000:0000:0000:0000:0000:0000:0001" is minimized to "::1".
905 We do not, however, make any effort to display embedded IPv4
906 addresses in the dot-quad notation.
908 2003-07-09 Bob Halley <halley@dnspython.org>
910 * dns/inet.py: We now supply our own AF_INET and AF_INET6
911 constants since AF_INET6 may not always be available. If the
912 socket module has AF_INET6, we will use it. If not, we will
913 use our own value for the constant.
915 * dns/query.py: the functions now take an optional af argument
916 specifying the address family to use when creating the socket.
918 * dns/rdatatype.py (is_metatype): a typo caused the function
919 return true only for type OPT.
921 * dns/message.py: message section list elements are now RRsets
922 instead of Nodes. This API change makes processing messages
923 easier for many applications.
925 2003-07-07 Bob Halley <halley@dnspython.org>
927 * dns/rrset.py: added. An RRset is a named rdataset.
929 * dns/rdataset.py (Rdataset.__eq__): rdatasets may now be compared
930 for equality and inequality with other objects. Rdataset instance
931 variables are now slotted.
933 * dns/message.py: The wire format and text format readers are now
934 classes. Variables related to reader state have been moved out
935 of the message class.
937 2003-07-06 Bob Halley <halley@dnspython.org>
939 * dns/name.py (from_text): '@' was not interpreted as the empty
942 * dns/zone.py: the master file reader derelativized names in rdata
943 relative to the zone's origin, not relative to the current origin.
944 The reader now deals with relativization in two steps. The rdata
945 is read and derelativized using the current origin. The rdata's
946 relativity is then chosen using the zone origin and the relativize
947 boolean. Here's an example.
953 If the zone origin is example., and relativization is on, then
954 This fragment will become:
956 bar.foo.example. 300 IN MX 0 blaz.foo.example.
958 after the first step (derelativization to current origin), and
960 bar.foo 300 IN MX 0 blaz.foo
962 after the second step (relativiation to zone origin).
964 * dns/namedict.py: added.
966 * dns/zone.py: The master file reader has been made into its
967 own class. Reader-related instance variables have been moved
968 form the zone class into the reader class.
970 * dns/zone.py: Add node_factory class attribute. An application
971 can now subclass Zone and Node and have a zone whose nodes are of
972 the subclassed Node type. The from_text(), from_file(), and
973 from_xfr() algorithms now take an optional zone_factory argument.
974 This allows the algorithms to be used to create zones whose class
975 is a subclass of Zone.
978 2003-07-04 Bob Halley <halley@dnspython.org>
980 * dns/renderer.py: added new wire format rendering module and
981 converted message.py to use it. Applications which want
982 fine-grained control over the conversion to wire format may call
983 the renderer directy, instead of having it called on their behalf
986 2003-07-02 Bob Halley <halley@dnspython.org>
988 * dns/name.py (_validate_labels): The NameTooLong test was
991 * dns/message.py (Message.to_wire): dns.exception.TooBig is
992 now raised if the wire encoding exceeds the specified
995 2003-07-01 Bob Halley <halley@dnspython.org>
997 * dns/message.py: EDNS encoding was broken. from_text()
998 didn't parse rcodes, flags, or eflags correctly. Comparing
999 messages with other types of objects didn't work.
1001 2003-06-30 Bob Halley <halley@dnspython.org>
1003 * (Version 1.0.0 released)
1005 2003-06-30 Bob Halley <halley@dnspython.org>
1007 * dns/rdata.py: Rdatas now implement rich comparisons instead of
1010 * dns/name.py: Names now implement rich comparisons instead of
1013 * dns/inet.py (inet_ntop): Always use our code, since the code
1014 in the socket module doesn't support AF_INET6 conversions if
1015 IPv6 sockets are not available on the system.
1017 * dns/resolver.py (Answer.__init__): A dangling CNAME chain was
1018 not raising NoAnswer.
1020 * Added a simple resolver Cache class.
1022 * Added an expiration attribute to answer instances.
1024 2003-06-24 Bob Halley <halley@dnspython.org>
1026 * (Version 1.0.0b3 released)
1028 2003-06-24 Bob Halley <halley@dnspython.org>
1030 * Renamed module "DNS" to "dns" to avoid conflicting with
1033 2003-06-23 Bob Halley <halley@dnspython.org>
1035 * The from_text() relativization controls now work the same way as
1036 the to_text() controls.
1038 * DNS/rdata.py: The parsing of generic rdata was broken.
1040 2003-06-21 Bob Halley <halley@dnspython.org>
1042 * (Version 1.0.0b2 released)
1044 2003-06-21 Bob Halley <halley@dnspython.org>
1046 * The Python 2.2 socket.inet_aton() doesn't seem to like
1047 '255.255.255.255'. We work around this.
1049 * Fixed bugs in rdata to_wire() and from_wire() routines of a few
1050 types. These bugs were discovered by running the tests/zone.py
1053 * Added implementation of type APL.
1055 2003-06-20 Bob Halley <halley@dnspython.org>
1057 * DNS/rdtypes/IN/AAAA.py: Use our own versions of inet_ntop and
1058 inet_pton if the socket module doesn't provide them for us.
1060 * The resolver now does a better job handling exceptions. In
1061 particular, it no longer eats all exceptions; rather it handles
1062 those exceptions it understands, and leaves the rest uncaught.
1064 * Exceptions have been pulled into their own module. Almost all
1065 exceptions raised by the code are now subclasses of
1066 DNS.exception.DNSException. All form errors are subclasses of
1067 DNS.exception.FormError (which is itself a subclass of
1068 DNS.exception.DNSException).
1070 2003-06-19 Bob Halley <halley@dnspython.org>
1072 * Added implementations of types DS, NXT, SIG, and WKS.
1074 * __cmp__ for type A and AAAA could produce incorrect results.
1076 2003-06-18 Bob Halley <halley@dnspython.org>
1078 * Started test suites for zone.py and tokenizer.py.
1080 * Added implementation of type KEY.
1082 * DNS/rdata.py(_base64ify): \n could be emitted erroneously.
1084 * DNS/rdtypes/ANY/SOA.py (SOA.from_text): The SOA RNAME field could
1085 be set to the value of MNAME in common cases.
1087 * DNS/rdtypes/ANY/X25.py: __init__ was broken.
1089 * DNS/zone.py (from_text): $TTL handling erroneously caused the
1090 next line to be eaten.
1092 * DNS/tokenizer.py (Tokenizer.get): parsing was broken for empty
1093 quoted strings. Quoted strings didn't handle \ddd escapes. Such
1094 escapes are appear not to comply with RFC 1035, but BIND allows
1095 them and they seem useful, so we allow them too.
1097 * DNS/rdtypes/ANY/ISDN.py (ISDN.from_text): parsing was
1098 broken for ISDN RRs without subaddresses.
1100 * DNS/zone.py (from_file): from_file() didn't work because
1101 some required parameters were not passed to from_text().
1103 2003-06-17 Bob Halley <halley@dnspython.org>
1105 * (Version 1.0.0b1 released)
1107 2003-06-17 Bob Halley <halley@dnspython.org>
1109 * Added implementation of type PX.
1111 2003-06-16 Bob Halley <halley@dnspython.org>
1113 * Added implementation of types CERT, GPOS, LOC, NSAP, NSAP-PTR.
1115 * DNS/rdatatype.py (_by_value): A cut-and-paste error had broken
1118 2003-06-12 Bob Halley <halley@dnspython.org>
1120 * Created a tests directory and started adding tests.
1122 * Added "and its documentation" to the permission grant in the
1125 2003-06-12 Bob Halley <halley@dnspython.org>
1127 * DNS/name.py (Name.is_wild): is_wild() erroneously raised IndexError
1128 if the name was empty.
1130 2003-06-10 Bob Halley <halley@dnspython.org>
1132 * Added implementations of types AFSDB, X25, and ISDN.
1134 * The documentation associated with the various rdata types has been
1135 improved. In particular, instance variables are now described.
1137 2003-06-09 Bob Halley <halley@dnspython.org>
1139 * Added implementations of types HINFO, RP, and RT.
1141 * DNS/message.py (make_query): Document that make_query() sets
1142 flags to DNS.flags.RD, and chooses a random query id.
1144 2003-06-05 Bob Halley <halley@dnspython.org>
1146 * (Version 1.0.0a2 released)
1148 2003-06-05 Bob Halley <halley@dnspython.org>
1150 * DNS/node.py: removed __getitem__ and __setitem__, since
1151 they are not used by the codebase and were not useful in
1154 * DNS/message.py (from_file): from_file() now allows a
1155 filename to be specified instead of a file object.
1157 * DNS/rdataset.py: The is_compatible() method of the
1158 DNS.rdataset.Rdataset class was deleted.
1160 2003-06-04 Bob Halley <halley@dnspython.org>
1162 * DNS/name.py (class Name): Names are now immutable.
1164 * DNS/name.py: the is_comparable() method has been removed, since
1165 names are always comparable.
1167 * DNS/resolver.py (Resolver.query): A query could run for up
1168 to the lifetime + the timeout. This has been corrected and the
1169 query will now only run up to the lifetime.
1171 2003-06-03 Bob Halley <halley@dnspython.org>
1173 * DNS/resolver.py: removed the 'new' function since it is not the
1174 style of the library to have such a function. Call
1175 DNS.resolver.Resolver() to make a new resolver.
1177 2003-06-03 Bob Halley <halley@dnspython.org>
1179 * DNS/resolver.py (Resolver._config_win32_fromkey): The DhcpServer
1180 list is space separated, not comma separated.
1182 2003-06-03 Bob Halley <halley@dnspython.org>
1184 * DNS/update.py: Added an update module to make generating updates
1187 2003-06-03 Bob Halley <halley@dnspython.org>
1189 * Commas were missing in some of the __all__ entries in various
1192 2003-05-30 Bob Halley <halley@dnspython.org>
1194 * (Version 1.0.0a1 released)