#: No error
NOERROR = 0
-#: Form error
+#: Format error
FORMERR = 1
#: Server failure
SERVFAIL = 2
A ``Zone`` is a mapping from names to nodes. The zone object may be
treated like a Python dictionary, e.g. ``zone[name]`` will retrieve
the node associated with that name. The *name* may be a
- ``dns.name.Name object``, or it may be a string. In the either case,
+ ``dns.name.Name object``, or it may be a string. In either case,
if the name is relative it is treated as relative to the origin of
the zone.
"""
.. attribute:: labels
A tuple of ``bytes`` in DNS wire format specifying the DNS
- labels in the name, in order from least-signficiant label
+ labels in the name, in order from least-significant label
(i.e. farthest from the origin) to most-significant label.
.. data:: dns.name.root
=========
Objects of the dns.name.Name class represent an immutable domain name.
-The representation is a tuple of labels, with each lable being a ``bytes``
+The representation is a tuple of labels, with each label being a ``bytes``
object in the DNS wire format. Typically names are not created by
supplying the labels tuple directly, but rather by converting from DNS
text format or the DNS wire format.