Add samba.ensure_third_party_module() function, loading external python modules from...
[bbaumbach/samba-autobuild/.git] / third_party / dnspython / ChangeLog
1 2011-08-22  Robert Halley  <halley@dnspython.org>
2
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.
6
7 2011-07-13  Bob Halley  <halley@dnspython.org>
8
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.
18
19 2011-07-08  Bob Halley  <halley@dnspython.org>
20
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
23           versions.
24
25         * dns/ipv6.py: inet_aton() now bounds checks embedded IPv4 addresses
26           more strictly.  Also, now only dns.exception.SyntaxError can be
27           raised on bad input.
28
29 2011-04-05  Bob Halley  <halley@dnspython.org>
30
31         * Old DNSSEC types (KEY, NXT, and SIG) have been removed.
32
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
36           IndexError.
37
38 2011-03-28  Bob Halley  <halley@dnspython.org>
39
40         * (Version 1.9.4 released)
41
42 2011-03-24  Bob Halley  <halley@dnspython.org>
43
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.
47
48         * dns/rdtypes/ANY/SIG.py (SIG._cmp): Add missing 'import struct'.
49           Thanks to Arfrever Frehtes Taifersar Arahesis for reporting the
50           problem.
51
52 2011-03-24  Bob Halley  <halley@dnspython.org>
53
54         * (Version 1.9.3 released)
55
56 2011-03-22  Bob Halley  <halley@dnspython.org>
57
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.
63
64         * dns/resolver.py: Answer() objects now have a canonical_name field.
65
66 2011-01-11  Bob Halley  <halley@dnspython.org>
67
68         * Dnspython was erroneously doing case-insensitive comparisons
69           of the names in NSEC and RRSIG RRs.  Thanks to Casey Deccio for
70           reporting this bug.
71
72 2010-12-17  Bob Halley  <halley@dnspython.org>
73
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.
77
78 2010-12-10  Bob Halley  <halley@dnspython.org>
79
80         * dns/resolver.py (Resolver.query): disallow metaqueries.
81
82         * dns/rdata.py (Rdata.__hash__): Added a __hash__ method for rdata.
83
84 2010-11-23  Bob Halley  <halley@dnspython.org>
85
86         * (Version 1.9.2 released)
87
88 2010-11-23  Bob Halley  <halley@dnspython.org>
89
90         * dns/dnssec.py (_need_pycrypto): DSA and RSA are modules, not
91           functions, and I didn't notice because the test suite masked
92           the bug!  *sigh*
93
94 2010-11-22  Bob Halley  <halley@dnspython.org>
95
96         * (Version 1.9.1 released)
97
98 2010-11-22  Bob Halley  <halley@dnspython.org>
99
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.
103
104 2010-11-20  Bob Halley  <halley@dnspython.org>
105
106         * (Version 1.9.0 released)
107
108 2010-11-07  Bob Halley  <halley@dnspython.org>
109
110         * dns/dnssec.py: Added validate() to do basic DNSSEC validation
111           (requires PyCrypto). Thanks to Brian Wellington for the patch.
112
113         * dns/hash.py: Hash compatibility handling is now its own module.
114
115 2010-10-31  Bob Halley  <halley@dnspython.org>
116
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.
121
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
125           useful program.
126
127 2010-10-27  Bob Halley  <halley@dnspython.org>
128
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.
132
133 2010-10-17  Bob Halley  <halley@dnspython.org>
134
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.
139
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.
143
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.
148
149         * dns/tsig.py (get_algorithm): fix hashlib compatibility; thanks to
150           Kevin Chen for the patch.
151
152         * dns/dnssec.py: Added key_id() and make_ds().
153
154         * dns/message.py: message.py needs to import dns.edns since it uses
155           it.
156
157 2010-05-04  Bob Halley  <halley@dnspython.org>
158
159         * dns/rrset.py (RRset.__init__): "covers" was not passed to the
160           superclass __init__().  Thanks to Shanmuga Rajan for reporting
161           the problem.
162
163 2010-03-10  Bob Halley  <halley@dnspython.org>
164
165         * The TSIG algorithm value was passed to use_tsig() incorrectly
166           in some cases.  Thanks to 'ducciovigolo' for reporting the problem.
167
168 2010-01-26  Bob Halley  <halley@dnspython.org>
169
170         * (Version 1.8.0 released)
171
172 2010-01-13  Bob Halley  <halley@dnspython.org>
173
174         * dns/dnssec.py: Added RSASHA256 and RSASHA512 codepoints; added
175           other missing codepoints to _algorithm_by_text.
176
177 2010-01-12  Bob Halley  <halley@dnspython.org>
178
179         * Escapes in masterfiles now work correctly.  Previously they were
180           only working correctly when the text involved was part of a domain
181           name.
182
183         * dns/tokenizer.py: The tokenizer's get() method now returns Token
184           objects, not (type, text) tuples.
185
186 2009-11-13  Bob Halley  <halley@dnspython.org>
187
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.
191
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
195           submitting a patch.
196
197         * dns/entropy.py: Use os.urandom() if present.  Don't seed until
198           someone wants randomness.
199
200 2009-09-16  Bob Halley  <halley@dnspython.org>
201
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.
205
206 2009-07-27  Bob Halley  <halley@dnspython.org>
207
208         * dns/query.py (xfr): The socket was not set to nonblocking mode.
209           Thanks to Erik Romijn for reporting this problem.
210
211 2009-07-23  Bob Halley  <halley@dnspython.org>
212
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.
216
217         * dns/e164.py (query): The resolver parameter was not used.
218           Thanks to Matías Bellone for reporting this bug.
219
220 2009-06-23  Bob Halley  <halley@dnspython.org>
221
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.
225
226 2009-06-19  Bob Halley  <halley@dnspython.org>
227
228         * (Version 1.7.1 released)
229
230 2009-06-19  Bob Halley  <halley@dnspython.org>
231
232         * DLV.py was omitted from the kit
233
234         * Negative prerequisites were not handled correctly in _get_section().
235
236 2009-06-19  Bob Halley  <halley@dnspython.org>
237
238         * (Version 1.7.0 released)
239
240 2009-06-19  Bob Halley  <halley@dnspython.org>
241
242         * On Windows, the resolver set the domain incorrectly.  Thanks
243           to Brandon Carpenter for reporting this bug.
244
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
249           are downcased.
250
251        * Added support for the HIP RR type.
252
253 2009-06-18  Bob Halley  <halley@dnspython.org>
254
255        * Added support for the DLV RR type.
256
257        * Added various DNSSEC related constants (e.g. algorithm identifiers,
258          flag values).
259
260        * dns/tsig.py: Added support for BADTRUNC result code.
261
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.
268
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.
272
273        * Added NSEC3 and NSEC3PARAM support.
274
275 2009-06-17  Bob Halley  <halley@dnspython.org>
276
277         * Fixed NSEC.to_text(), which was only printing the last window.
278           Thanks to Brian Wellington for finding the problem and fixing it.
279
280 2009-03-30  Bob Halley  <halley@dnspython.org>
281
282         * dns/query.py (xfr): Allow UDP IXFRs.  Use "one_rr_per_rrset" mode when
283           doing IXFR.
284
285 2009-03-30  Bob Halley  <halley@dnspython.org>
286
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).
291
292 2009-03-30  Bob Halley  <halley@dnspython.org>
293
294         * Added EDNS option support.
295
296 2008-10-16  Bob Halley  <halley@dnspython.org>
297
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.
301
302 2008-10-08  Bob Halley  <halley@dnspython.org>
303
304         * Add entropy module.
305
306         * When validating TSIGs, we need to use the absolute name.
307
308 2008-06-03  Bob Halley  <halley@dnspython.org>
309
310         * dns/message.py (Message.set_rcode): The mask used preserved the
311           extended rcode, instead of everything else in ednsflags.
312
313         * dns/message.py (Message.use_edns): ednsflags was not kept
314           coherent with the specified edns version.
315
316 2008-02-06  Bob Halley  <halley@dnspython.org>
317
318         * dns/ipv6.py (inet_aton):  We could raise an exception other than
319           dns.exception.SyntaxError in some cases.
320
321         * dns/tsig.py: Raise an exception when the peer has set a non-zero
322           TSIG error.
323
324 2007-11-25  Bob Halley  <halley@dnspython.org>
325
326         * (Version 1.6.0 released)
327
328 2007-11-25  Bob Halley  <halley@dnspython.org>
329
330         * dns/query.py (_wait_for): if select() raises an exception due to
331           EINTR, we should just select() again.
332
333 2007-06-13  Bob Halley  <halley@dnspython.org>
334
335         * dns/inet.py: Added is_multicast().
336
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
339           queried.
340
341 2007-05-24  Bob Halley  <halley@dnspython.org>
342
343         * dns/rdtypes/IN/NAPTR.py: NAPTR comparisons didn't compare the
344           preference field due to a typo.
345
346 2007-02-07  Bob Halley  <halley@dnspython.org>
347
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.
351
352 2006-12-10  Bob Halley  <halley@dnspython.org>
353
354         * (Version 1.5.0 released)
355
356 2006-11-03  Bob Halley  <halley@dnspython.org>
357
358         * dns/rdtypes/IN/DHCID.py: Added support for the DHCID RR type.
359
360 2006-11-02  Bob Halley  <halley@dnspython.org>
361
362         * dns/query.py (udp): Messages from unexpected sources can now be
363           ignored by setting ignore_unexpected to True.
364
365 2006-10-31  Bob Halley  <halley@dnspython.org>
366
367         * dns/query.py (udp): When raising UnexpectedSource, add more
368           detail about what went wrong to the exception.
369
370 2006-09-22  Bob Halley  <halley@dnspython.org>
371
372         * dns/message.py (Message.use_edns): add reasonable defaults for
373           the ednsflags, payload, and request_payload parameters.
374
375         * dns/message.py (Message.want_dnssec): add a convenience method for
376           enabling/disabling the "DNSSEC desired" flag in requests.
377
378         * dns/message.py (make_query): add "use_edns" and "want_dnssec"
379           parameters.
380
381 2006-08-17  Bob Halley  <halley@dnspython.org>
382
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
386           been empty).
387
388 2006-07-26  Bob Halley  <halley@dnspython.org>
389
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.
394
395 2006-07-20  Bob Halley  <halley@dnspython.org>
396
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]".
402
403 2006-07-19  Bob Halley  <halley@dnspython.org>
404
405         * dns/query.py (xfr): Add IXFR support.
406
407 2006-06-22  Bob Halley  <halley@dnspython.org>
408
409         * dns/rdtypes/IN/IPSECKEY.py: Added support for the IPSECKEY RR type.
410
411 2006-06-21  Bob Halley  <halley@dnspython.org>
412
413         * dns/rdtypes/ANY/SPF.py: Added support for the SPF RR type.
414
415 2006-06-02  Bob Halley  <halley@dnspython.org>
416
417         * (Version 1.4.0 released)
418
419 2006-04-25  Bob Halley  <halley@dnspython.org>
420
421         * dns/rrset.py (RRset.to_rdataset): Added a convenience method
422           to convert an rrset into an rdataset.
423
424 2006-03-27  Bob Halley  <halley@dnspython.org>
425
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.:
428
429                 dns.e164.query('16505551212',
430                                ['e164.dnspython.org.', 'e164.arpa.'])
431
432 2006-03-26  Bob Halley  <halley@dnspython.org>
433
434         * dns/resolver.py (Resolver.query): The resolver deleted from
435           a list while iterating it, which makes the iterator unhappy.
436
437 2006-03-17  Bob Halley  <halley@dnspython.org>
438
439         * dns/resolver.py (Resolver.query): The resolver needlessly
440           delayed responses for successful queries.
441
442 2006-01-18  Bob Halley  <halley@dnspython.org>
443
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:
448
449                 r.preference = 100000   # invalid, because > 65535
450                 r.validate()
451
452           The validation will fail and an exception will be raised.
453
454 2006-01-11  Bob Halley  <halley@dnspython.org>
455
456         * dns/ttl.py: TTLs are now bounds checked to be within the closed
457           interval [0, 2^31 - 1].
458
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.
462
463 2006-01-04  Bob Halley  <halley@dnspython.org>
464
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).
469
470 2005-12-27  Bob Halley  <halley@dnspython.org>
471
472         * dns/e164.py: Added routines to convert between E.164 numbers and
473           their ENUM domain name equivalents.
474
475         * dns/reversename.py: Added routines to convert between IPv4 and
476           IPv6 addresses and their DNS reverse-map equivalents.
477
478 2005-12-18  Bob Halley  <halley@dnspython.org>
479
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.
483
484 2005-11-17  Bob Halley  <halley@dnspython.org>
485
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.
489
490         * dns/zone.py: Sanity checks of the zone's origin node can now
491           be disabled.
492
493 2005-11-12  Bob Halley  <halley@dnspython.org>
494
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.
501
502 2005-10-31  Bob Halley  <halley@dnspython.org>
503
504         * (Version 1.3.5 released)
505
506 2005-10-12  Bob Halley  <halley@dnspython.org>
507
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.
511
512 2005-10-06  Bob Halley  <halley@dnspython.org>
513
514         * dns/name.py: Added the parent() method, which returns the
515           parent of a name.
516
517 2005-10-01  Bob Halley  <halley@dnspython.org>
518
519         * dns/resolver.py: Added zone_for_name() helper, which returns
520           the name of the zone which contains the specified name.
521
522         * dns/resolver.py: Added get_default_resolver(), which returns
523           the default resolver, initializing it if necessary.
524
525 2005-09-29  Bob Halley  <halley@dnspython.org>
526
527         * dns/resolver.py (Resolver._compute_timeout): If time goes
528           backwards a little bit, ignore it.
529
530 2005-07-31  Bob Halley  <halley@dnspython.org>
531
532         * (Version 1.3.4 released)
533
534 2005-07-31  Bob Halley  <halley@dnspython.org>
535
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.
539
540         * dns/query.py (_connect): We needed to ignore EALREADY too.
541
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.
545
546 2005-06-05  Bob Halley  <halley@dnspython.org>
547
548         * dns/query.py: The requirement that the "where" parameter be
549           an IPv4 or IPv6 address is now documented.
550
551 2005-06-04  Bob Halley  <halley@dnspython.org>
552
553         * dns/resolver.py: The resolver now does exponential backoff
554           each time it runs through all of the nameservers.
555
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.
559
560 2005-01-30  Bob Halley  <halley@dnspython.org>
561
562         * (Version 1.3.3 released)
563
564 2004-10-25  Bob Halley  <halley@dnspython.org>
565
566         * dns/rdtypes/ANY/TXT.py (TXT.from_text): The masterfile parser
567         incorrectly rejected TXT records where a value was not quoted.
568
569 2004-10-11  Bob Halley  <halley@dnspython.org>
570
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.
575
576 2004-10-10  Bob Halley  <halley@dnspython.org>
577
578         * dns/zone.py (from_xfr): dns.zone.from_xfr() in relativization
579         mode incorrectly set zone.origin to the empty name.
580
581 2004-09-02  Bob Halley  <halley@dnspython.org>
582
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.
586
587 2004-08-14  Bob Halley  <halley@dnspython.org>
588
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.
592
593 2004-08-07  Bob Halley  <halley@dnspython.org>
594
595         * (Version 1.3.2 released)
596
597 2004-08-04  Bob Halley  <halley@dnspython.org>
598
599         * dns/query.py: sending queries to a nameserver via IPv6 now
600         works.
601
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
604         family it is.
605
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.
611
612 2004-07-31  Bob Halley  <halley@dnspython.org>
613
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.
616
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.
620
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.
624
625 2004-06-16  Bob Halley  <halley@dnspython.org>
626
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.
630
631 2004-06-06  Bob Halley  <halley@dnspython.org>
632
633         * (Version 1.3.1 released)
634
635 2004-05-22  Bob Halley  <halley@dnspython.org>
636
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.
641
642         * dns/rdtypes/ANY/SSHFP.py: Added support for the proposed SSHFP
643         RR type.
644
645 2004-05-14  Bob Halley  <halley@dnspython.org>
646
647         * dns/rdata.py (from_text): The masterfile reader did not
648         accept the unknown RR syntax when used with a known RR type.
649
650 2004-05-08  Bob Halley  <halley@dnspython.org>
651
652         * dns/name.py (from_text): dns.name.from_text() did not raise
653         an exception if a backslash escape ended prematurely.
654
655 2004-04-09  Bob Halley  <halley@dnspython.org>
656
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).
661
662 2004-04-01  Bob Halley  <halley@dnspython.org>
663
664         * (Version 1.3.0 released)
665
666 2004-03-19  Bob Halley  <halley@dnspython.org>
667
668         * Added support for new DNSSEC types RRSIG, NSEC, and DNSKEY.
669
670 2004-01-16  Bob Halley  <halley@dnspython.org>
671
672         * dns/query.py (_connect): Windows returns EWOULDBLOCK instead
673         of EINPROGRESS when trying to connect a nonblocking socket.
674
675 2003-11-13  Bob Halley  <halley@dnspython.org>
676
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.
680
681         * dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
682         encoded with just one octet, not two!
683
684 2003-11-09  Bob Halley  <halley@dnspython.org>
685
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.
690
691 2003-11-07  Bob Halley  <halley@dnspython.org>
692
693         * (Version 1.2.0 released)
694
695 2003-11-03  Bob Halley  <halley@dnspython.org>
696
697         * dns/zone.py (_MasterReader.read): The saved_state now includes
698         the default TTL.
699
700 2003-11-01  Bob Halley  <halley@dnspython.org>
701
702         * dns/tokenizer.py (Tokenizer.get): The tokenizer didn't
703         handle escaped delimiters.
704
705 2003-10-27  Bob Halley  <halley@dnspython.org>
706
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'].
710
711 2003-09-08  Bob Halley  <halley@dnspython.org>
712
713         * dns/resolver.py (Resolver._config_win32_fromkey): We didn't
714         catch WindowsError, which can happen if a key is not defined
715         in the registry.
716
717 2003-09-06  Bob Halley  <halley@dnspython.org>
718
719         * (Version 1.2.0b1 released)
720
721 2003-09-05  Bob Halley  <halley@dnspython.org>
722
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
725         accurate expiration.
726
727 2003-08-30  Bob Halley  <halley@dnspython.org>
728
729         * dns/zone.py: dns.exception.SyntaxError is raised for unknown
730         master file directives.
731
732 2003-08-28  Bob Halley  <halley@dnspython.org>
733
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.
743
744 2003-08-22  Bob Halley  <halley@dnspython.org>
745
746         * dns/zone.py: The _MasterReader now understands $INCLUDE.
747
748 2003-08-12  Bob Halley  <halley@dnspython.org>
749
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
754         to from_text().
755
756 2003-08-10  Bob Halley  <halley@dnspython.org>
757
758         * (Version 1.1.0 released)
759
760 2003-08-07  Bob Halley  <halley@dnspython.org>
761
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).
765
766 2003-08-05  Bob Halley  <halley@dnspython.org>
767
768         * dns/set.py: the simple Set class has been moved to its
769         own module, and augmented to support more set operations.
770
771 2003-08-04  Bob Halley  <halley@dnspython.org>
772
773         * Node and all rdata types have been "slotted".  This speeds
774         things up a little and reduces memory usage noticeably.
775
776 2003-08-02  Bob Halley  <halley@dnspython.org>
777
778         * (Version 1.1.0c1 released)
779
780 2003-08-02  Bob Halley  <halley@dnspython.org>
781
782         * dns/rdataset.py: SimpleSets now support more set options.
783
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.
787
788         * dns/node.py: Added the delete_rdataset() and replace_rdataset()
789         methods.
790
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.
795
796 2003-08-01  Bob Halley  <halley@dnspython.org>
797
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.
801
802         * dns/message.py: Added set_rcode().  Fixed code where ednsflags
803         wasn't treated as a long.
804
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.
809
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.
813
814         * dns/node.py: Added get_rdataset() method.
815
816         * dns/zone.py: Added get_rdataset() and get_rrset() methods.  Added
817         iterate_rdatas().
818
819 2003-07-31  Bob Halley  <halley@dnspython.org>
820
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.
824
825 2003-07-30  Bob Halley  <halley@dnspython.org>
826
827         * (Version 1.1.0b2 released)
828
829 2003-07-30  Bob Halley  <halley@dnspython.org>
830
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.
834
835         * dns/node.py: Nodes no longer have names; owner names are
836         associated with nodes in the Zone object's nodes dictionary.
837
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
841         behavior.
842
843 2003-07-20  Bob Halley  <halley@dnspython.org>
844
845         * dns/ipv6.py (inet_ntoa): Handle embedded IPv4 addresses.
846
847 2003-07-19  Bob Halley  <halley@dnspython.org>
848
849         * (Version 1.1.0b1 released)
850
851 2003-07-18  Bob Halley  <halley@dnspython.org>
852
853         * dns/tsig.py: The TSIG validation of TCP streams where not
854         every message is signed now works correctly.
855
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.
860
861 2003-07-17  Bob Halley  <halley@dnspython.org>
862
863         * dns/message.py (Message.use_tsig): The method now allows for
864         greater control over the various fields in the generated signature
865         (e.g. fudge).
866         (_WireReader._get_section): UnknownTSIGKey is now raised if an
867         unknown key is encountered, or if a signed message has no keyring.
868
869 2003-07-16  Bob Halley  <halley@dnspython.org>
870
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.
874
875 2003-07-15  Bob Halley  <halley@dnspython.org>
876
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
880         the reader.
881
882 2003-07-12  Bob Halley  <halley@dnspython.org>
883
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.
887
888 2003-07-11  Bob Halley  <halley@dnspython.org>
889
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
894         itself relative.
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
898         of the name.
899
900 2003-07-10  Bob Halley  <halley@dnspython.org>
901
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.
907
908 2003-07-09  Bob Halley  <halley@dnspython.org>
909
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.
914
915         * dns/query.py: the functions now take an optional af argument
916         specifying the address family to use when creating the socket.
917
918         * dns/rdatatype.py (is_metatype): a typo caused the function
919         return true only for type OPT.
920
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.
924
925 2003-07-07  Bob Halley  <halley@dnspython.org>
926
927         * dns/rrset.py: added.  An RRset is a named rdataset.
928
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.
932
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.
936
937 2003-07-06  Bob Halley  <halley@dnspython.org>
938
939         * dns/name.py (from_text): '@' was not interpreted as the empty
940         name.
941
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.
948
949                 $ORIGIN foo.example.
950                 $TTL 300
951                 bar MX 0 blaz
952
953         If the zone origin is example., and relativization is on, then
954         This fragment will become:
955
956                 bar.foo.example. 300 IN MX 0 blaz.foo.example.
957
958         after the first step (derelativization to current origin), and
959
960                 bar.foo 300 IN MX 0 blaz.foo
961
962         after the second step (relativiation to zone origin).
963
964         * dns/namedict.py: added.
965
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.
969
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.
976
977
978 2003-07-04  Bob Halley  <halley@dnspython.org>
979
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
984         by the message code.
985
986 2003-07-02  Bob Halley  <halley@dnspython.org>
987
988         * dns/name.py (_validate_labels): The NameTooLong test was
989         incorrect.
990
991         * dns/message.py (Message.to_wire): dns.exception.TooBig is
992         now raised if the wire encoding exceeds the specified
993         maximum size.
994
995 2003-07-01  Bob Halley  <halley@dnspython.org>
996
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.
1000
1001 2003-06-30  Bob Halley  <halley@dnspython.org>
1002
1003         * (Version 1.0.0 released)
1004
1005 2003-06-30  Bob Halley  <halley@dnspython.org>
1006
1007         * dns/rdata.py: Rdatas now implement rich comparisons instead of
1008         __cmp__.
1009
1010         * dns/name.py: Names now implement rich comparisons instead of
1011         __cmp__.
1012
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.
1016
1017         * dns/resolver.py (Answer.__init__): A dangling CNAME chain was
1018         not raising NoAnswer.
1019
1020         * Added a simple resolver Cache class.
1021
1022         * Added an expiration attribute to answer instances.
1023
1024 2003-06-24  Bob Halley  <halley@dnspython.org>
1025
1026         * (Version 1.0.0b3 released)
1027
1028 2003-06-24  Bob Halley  <halley@dnspython.org>
1029
1030         * Renamed module "DNS" to "dns" to avoid conflicting with
1031         PyDNS.
1032
1033 2003-06-23  Bob Halley  <halley@dnspython.org>
1034
1035         * The from_text() relativization controls now work the same way as
1036         the to_text() controls.
1037
1038         * DNS/rdata.py: The parsing of generic rdata was broken.
1039
1040 2003-06-21  Bob Halley  <halley@dnspython.org>
1041
1042         * (Version 1.0.0b2 released)
1043
1044 2003-06-21  Bob Halley  <halley@dnspython.org>
1045
1046         * The Python 2.2 socket.inet_aton() doesn't seem to like
1047         '255.255.255.255'.  We work around this.
1048
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
1051         Torture1 test.
1052
1053         * Added implementation of type APL.
1054
1055 2003-06-20  Bob Halley  <halley@dnspython.org>
1056
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.
1059
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.
1063
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).
1069
1070 2003-06-19  Bob Halley  <halley@dnspython.org>
1071
1072         * Added implementations of types DS, NXT, SIG, and WKS.
1073
1074         * __cmp__ for type A and AAAA could produce incorrect results.
1075
1076 2003-06-18  Bob Halley  <halley@dnspython.org>
1077
1078         * Started test suites for zone.py and tokenizer.py.
1079
1080         * Added implementation of type KEY.
1081
1082         * DNS/rdata.py(_base64ify): \n could be emitted erroneously.
1083
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.
1086
1087         * DNS/rdtypes/ANY/X25.py: __init__ was broken.
1088
1089         * DNS/zone.py (from_text): $TTL handling erroneously caused the
1090         next line to be eaten.
1091
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.
1096
1097         * DNS/rdtypes/ANY/ISDN.py (ISDN.from_text): parsing was
1098         broken for ISDN RRs without subaddresses.
1099
1100         * DNS/zone.py (from_file): from_file() didn't work because
1101         some required parameters were not passed to from_text().
1102
1103 2003-06-17  Bob Halley  <halley@dnspython.org>
1104
1105         * (Version 1.0.0b1 released)
1106
1107 2003-06-17  Bob Halley  <halley@dnspython.org>
1108
1109         * Added implementation of type PX.
1110
1111 2003-06-16  Bob Halley  <halley@dnspython.org>
1112
1113         * Added implementation of types CERT, GPOS, LOC, NSAP, NSAP-PTR.
1114
1115         * DNS/rdatatype.py (_by_value): A cut-and-paste error had broken
1116         NSAP and NSAP-PTR.
1117
1118 2003-06-12  Bob Halley  <halley@dnspython.org>
1119
1120         * Created a tests directory and started adding tests.
1121
1122         * Added "and its documentation" to the permission grant in the
1123         license.
1124
1125 2003-06-12  Bob Halley  <halley@dnspython.org>
1126
1127         * DNS/name.py (Name.is_wild): is_wild() erroneously raised IndexError
1128         if the name was empty.
1129
1130 2003-06-10  Bob Halley  <halley@dnspython.org>
1131
1132         * Added implementations of types AFSDB, X25, and ISDN.
1133
1134         * The documentation associated with the various rdata types has been
1135         improved.  In particular, instance variables are now described.
1136
1137 2003-06-09  Bob Halley  <halley@dnspython.org>
1138
1139         * Added implementations of types HINFO, RP, and RT.
1140
1141         * DNS/message.py (make_query): Document that make_query() sets
1142         flags to DNS.flags.RD, and chooses a random query id.
1143
1144 2003-06-05  Bob Halley  <halley@dnspython.org>
1145
1146         * (Version 1.0.0a2 released)
1147
1148 2003-06-05  Bob Halley  <halley@dnspython.org>
1149
1150         * DNS/node.py: removed __getitem__ and __setitem__, since
1151         they are not used by the codebase and were not useful in
1152         general either.
1153
1154         * DNS/message.py (from_file): from_file() now allows a
1155         filename to be specified instead of a file object.
1156
1157         * DNS/rdataset.py: The is_compatible() method of the
1158         DNS.rdataset.Rdataset class was deleted.
1159
1160 2003-06-04  Bob Halley  <halley@dnspython.org>
1161
1162         * DNS/name.py (class Name): Names are now immutable.
1163
1164         * DNS/name.py: the is_comparable() method has been removed, since
1165         names are always comparable.
1166
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.
1170
1171 2003-06-03  Bob Halley  <halley@dnspython.org>
1172
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.
1176
1177 2003-06-03  Bob Halley  <halley@dnspython.org>
1178
1179         * DNS/resolver.py (Resolver._config_win32_fromkey): The DhcpServer
1180         list is space separated, not comma separated.
1181
1182 2003-06-03  Bob Halley  <halley@dnspython.org>
1183
1184         * DNS/update.py: Added an update module to make generating updates
1185         easier.
1186
1187 2003-06-03  Bob Halley  <halley@dnspython.org>
1188
1189         * Commas were missing in some of the __all__ entries in various
1190         __init__.py files.
1191
1192 2003-05-30  Bob Halley  <halley@dnspython.org>
1193
1194         * (Version 1.0.0a1 released)