+2004-07-31 Bob Halley <halley@dnspython.org>
+
+ * dns/rdtypes/ANY/NSEC.py (NSEC.from_text): The NSEC text format
+ does not allow specifying types by number, so we shouldn't either.
+
+ * dns/renderer.py: the renderer module didn't import random,
+ causing an exception to be raised if a query id wasn't provided
+ when a Renderer was created.
+
+ * dns/resolver.py (Resolver.query): the resolver wasn't catching
+ dns.exception.Timeout, so a timeout erroneously caused the whole
+ resolution to fail instead of just going on to the next server.
+
2004-06-16 Bob Halley <halley@dnspython.org>
* dns/rdtypes/ANY/LOC.py (LOC.from_text): LOC milliseconds values
New since 1.3.1:
+ The NSEC format doesn't allow specifying types by number, so
+ we shouldn't either. (Using the unknown type format is still
+ OK though.)
+
+ The resolver wasn't catching dns.exception.Timeout, so a timeout
+ erroneously caused the whole resolution to fail instead of just
+ going on to the next server.
+
+ The renderer module didn't import random, causing an exception
+ to be raised if a query id wasn't provided when a Renderer was
+ created.
+
The conversion of LOC milliseconds values from text to binary was
incorrect if the length of the milliseconds string was not 3.
(ttype, value) = tok.get()
if ttype == dns.tokenizer.EOL or ttype == dns.tokenizer.EOF:
break
- if value.isdigit():
- nrdtype = int(value)
- else:
- nrdtype = dns.rdatatype.from_text(value)
+ nrdtype = dns.rdatatype.from_text(value)
if nrdtype == 0:
raise dns.exception.SyntaxError, "NSEC with bit 0"
if nrdtype > 65535: