* Comparing two rdata is now always done by comparing the binary
data of the DNSSEC digestable forms. This corrects a number of
- errors where dnspython's rdata comparsion order was not the
+ errors where dnspython's rdata comparison order was not the
DNSSEC order.
* Add CAA implementation. Thanks to Brian Wellington for the
2003-11-13 Bob Halley <halley@dnspython.org>
* dns/rdtypes/ANY/LOC.py (LOC.to_wire): We encoded and decoded LOC
- incorrectly, since we were interpreting the values of altitiude,
+ incorrectly, since we were interpreting the values of altitude,
size, hprec, and vprec in meters instead of centimeters.
* dns/rdtypes/IN/WKS.py (WKS.from_wire): The WKS protocol value is
bar.foo 300 IN MX 0 blaz.foo
- after the second step (relativiation to zone origin).
+ after the second step (relativization to zone origin).
* dns/namedict.py: added.
* dns/renderer.py: added new wire format rendering module and
converted message.py to use it. Applications which want
fine-grained control over the conversion to wire format may call
- the renderer directy, instead of having it called on their behalf
+ the renderer directly, instead of having it called on their behalf
by the message code.
2003-07-02 Bob Halley <halley@dnspython.org>
dns.resolver.query() will try TCP if a UDP response is
truncated.
- The python socket module's DNS methods can be now be overriden
+ The python socket module's DNS methods can be now be overridden
with implementations that use dnspython's resolver.
Old DNSSEC types KEY, NXT, and SIG have been removed.
Bugs fixed since 1.7.0:
- The 1.7.0 kitting process inadventently omitted the code for the
+ The 1.7.0 kitting process inadvertently omitted the code for the
DLV RR.
Negative DDNS prerequisites are now handled correctly.
@type otype: int
@param wire: The wire-format message
@type wire: string
- @param current: The offet in wire of the beginning of the rdata.
+ @param current: The offset in wire of the beginning of the rdata.
@type current: int
@param olen: The length of the wire-format option data
@type olen: int
@type otype: int
@param wire: The wire-format message
@type wire: string
- @param current: The offet in wire of the beginning of the rdata.
+ @param current: The offset in wire of the beginning of the rdata.
@type current: int
@param olen: The length of the wire-format option data
@type olen: int
In the new mode *args has to be empty and all kwargs has to exactly match
set in class variable self.supp_kwargs. All kwargs are stored inside
self.kwargs and used in new __str__ implementation to construct
- formated message based on self.fmt string.
+ formatted message based on self.fmt string.
In the simplest case it is enough to override supp_kwargs and fmt
class variables to get nice parametrized messages.
class BadEDNS(dns.exception.FormError):
- """OPT record occured somewhere other than the start of
+ """OPT record occurred somewhere other than the start of
the additional data section."""
class BadTSIG(dns.exception.FormError):
- """A TSIG record occured somewhere other than the end of
+ """A TSIG record occurred somewhere other than the end of
the additional data section."""
The query name, type, and class may all be specified either
as objects of the appropriate type, or as strings.
- The query will have a randomly choosen query id, and its DNS flags
+ The query will have a randomly chosen query id, and its DNS flags
will be set to dns.flags.RD.
@param qname: The query name.
def fullcompare(self, other):
"""Compare two names, returning a 3-tuple (relation, order, nlabels).
- I{relation} describes the relation ship beween the names,
+ I{relation} describes the relation ship between the names,
and is one of: dns.name.NAMERELN_NONE,
dns.name.NAMERELN_SUPERDOMAIN, dns.name.NAMERELN_SUBDOMAIN,
dns.name.NAMERELN_EQUAL, or dns.name.NAMERELN_COMMONANCESTOR
def to_unicode(self, omit_final_dot=False):
"""Convert name to Unicode text format.
- IDN ACE lables are converted to Unicode.
+ IDN ACE labels are converted to Unicode.
@param omit_final_dot: If True, don't emit the final dot (denoting the
root label) for absolute names. The default is False.
def from_unicode(text, origin=root):
"""Convert unicode text into a Name object.
- Lables are encoded in IDN ACE form.
+ Labels are encoded in IDN ACE form.
@rtype: dns.name.Name object
"""
def from_text(text):
"""Convert text into an rcode.
- @param text: the texual rcode
+ @param text: the textual rcode
@type text: string
@raises UnknownRcode: the rcode is unknown
@rtype: int
@type rdtype: int
@param wire: The wire-format message
@type wire: string
- @param current: The offet in wire of the beginning of the rdata.
+ @param current: The offset in wire of the beginning of the rdata.
@type current: int
@param rdlen: The length of the wire-format rdata
@type rdlen: int
@type rdtype: int
@param wire: The wire-format message
@type wire: string
- @param current: The offet in wire of the beginning of the rdata.
+ @param current: The offset in wire of the beginning of the rdata.
@type current: int
@param rdlen: The length of the wire-format rdata
@type rdlen: int
then L{dns.exception.TooBig} will be raised.
@type max_size: int
@param origin: the origin to use when rendering relative names
- @type origin: dns.name.Namem or None.
+ @type origin: dns.name.Name or None.
"""
self.output = BytesIO()
if isinstance(origin, string_types):
origin = dns.name.from_text(origin)
elif not isinstance(origin, dns.name.Name):
- raise ValueError("origin parameter must be convertable to a "
+ raise ValueError("origin parameter must be convertible to a "
"DNS name")
if not origin.is_absolute():
raise ValueError("origin parameter must be an absolute name")
if isinstance(name, string_types):
name = dns.name.from_text(name, None)
elif not isinstance(name, dns.name.Name):
- raise KeyError("name parameter must be convertable to a DNS name")
+ raise KeyError("name parameter must be convertible to a DNS name")
if name.is_absolute():
if not name.is_subdomain(self.origin):
raise KeyError(
p.print_help()
sys.exit(64)
- # Open file desriptors
+ # Open file descriptors
if not opts.use_vc:
oldn, newn = args
else:
self.failUnlessRaises(dns.dnssec.ValidationFailure, bad)
@unittest.skipIf(not dns.dnssec._have_ecdsa,
- "python ECDSA can not be imported")
+ "python ECDSA cannot be imported")
def testAbsoluteECDSA384Good(self):
dns.dnssec.validate(abs_ecdsa384_soa, abs_ecdsa384_soa_rrsig,
abs_ecdsa384_keys, None, when4)
@unittest.skipIf(not dns.dnssec._have_ecdsa,
- "python ECDSA can not be imported")
+ "python ECDSA cannot be imported")
def testAbsoluteECDSA384Bad(self):
def bad():
dns.dnssec.validate(abs_other_ecdsa384_soa, abs_ecdsa384_soa_rrsig,
self.failUnlessRaises(dns.exception.SyntaxError, bad)
def testFirstRRStartsWithWhitespace(self):
- # no name is specified, so default to the intial origin
+ # no name is specified, so default to the initial origin
# no ttl is specified, so default to the initial TTL of 0
z = dns.zone.from_text(' IN A 10.0.0.1', origin='example.',
check_origin=False)