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