The TSIG keyring to use. The default is `None`. A TSIG keyring
is a dictionary mapping from TSIG key name, a ``dns.name.Name``, to
- a TSIG secret, a ``binary``.
+ a TSIG secret, a ``bytes``.
.. attribute:: keyname
.. attribute:: request_mac
- A ``binary``, the TSIG MAC of the request message associated with
+ A ``bytes``, the TSIG MAC of the request message associated with
this message; used when validating TSIG signatures.
.. attribute:: fudge
.. attribute:: other_data
- A ``binary``, the TSIG "other data". The default is the empty
- ``binary``.
+ A ``bytes``, the TSIG "other data". The default is the empty
+ ``bytes``.
.. attribute:: mac
- A ``binary``, the TSIG MAC for this message.
+ A ``bytes``, the TSIG MAC for this message.
.. attribute:: xfr
.. attribute:: labels
- A tuple of ``binary`` in DNS wire format specifying the DNS
+ A tuple of ``bytes`` in DNS wire format specifying the DNS
labels in the name, in order from least-signficiant label
(i.e. farthest from the origin) to most-significant label.
=========
Objects of the dns.name.Name class represent an immutable domain name.
-The representation is a tuple of labels, with each lable being a ``binary``
+The representation is a tuple of labels, with each lable 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.
Python 3, and ``('www', 'dnspython', 'org', '')`` on Python 2.
Names may be *absolute* or *relative*. Absolute names end in the root label,
-which is an empty ``binary``. Relative names do not end in the root label. To
+which is an empty ``bytes``. Relative names do not end in the root label. To
convert a relative name to an absolute name requires specifying an *origin*.
Typically the origin is known by context. Dnspython provides tools to
relativize and derelativize names. It's a good idea not to mix relative
.. attribute:: nameservers
- A ``list`` of ``text``, each item containing an IPv4 or IPv6 address.
+ A ``list`` of ``str``, each item containing an IPv4 or IPv6 address.
.. attribute:: search
.. attribute:: nameserver_ports
- A ``dict`` mapping an IPv4 or IPv6 address ``text`` to an ``int``.
+ A ``dict`` mapping an IPv4 or IPv6 address ``str`` to an ``int``.
This specifies the port to use when sending to a nameserver. If
a port is not defined for an address, the value of the *port*
attribute will be used.
.. attribute:: keyalgorithm
- A ``dns.name.Name`` or ``text``, the TSIG algorithm to use.
+ A ``dns.name.Name`` or ``str``, the TSIG algorithm to use.
*edns*, an ``int``, is the EDNS level to use. Specifying
``None``, ``False``, or ``-1`` means "do not use EDNS", and in
this case the other parameters are ignored. Specifying