Return a generator for the responses to a zone transfer. *where*, a ``str`` containing an IPv4 or IPv6 address, where to send the message. *zone*, a ``dns.name.Name`` or ``str``, the name of the zone to transfer. *rdtype*, an ``int`` or ``str``, the type of zone transfer. The
(
where: str,
zone: dns.name.Name | str,
rdtype: dns.rdatatype.RdataType | str = dns.rdatatype.AXFR,
rdclass: dns.rdataclass.RdataClass | str = dns.rdataclass.IN,
timeout: float | None = None,
port: int = 53,
keyring: Dict[dns.name.Name, dns.tsig.Key] | None = None,
keyname: dns.name.Name | str | None = None,
relativize: bool = True,
lifetime: float | None = None,
source: str | None = None,
source_port: int = 0,
serial: int = 0,
use_udp: bool = False,
keyalgorithm: dns.name.Name | str = dns.tsig.default_algorithm,
)
| 1593 | |
| 1594 | |
| 1595 | def xfr( |
| 1596 | where: str, |
| 1597 | zone: dns.name.Name | str, |
| 1598 | rdtype: dns.rdatatype.RdataType | str = dns.rdatatype.AXFR, |
| 1599 | rdclass: dns.rdataclass.RdataClass | str = dns.rdataclass.IN, |
| 1600 | timeout: float | None = None, |
| 1601 | port: int = 53, |
| 1602 | keyring: Dict[dns.name.Name, dns.tsig.Key] | None = None, |
| 1603 | keyname: dns.name.Name | str | None = None, |
| 1604 | relativize: bool = True, |
| 1605 | lifetime: float | None = None, |
| 1606 | source: str | None = None, |
| 1607 | source_port: int = 0, |
| 1608 | serial: int = 0, |
| 1609 | use_udp: bool = False, |
| 1610 | keyalgorithm: dns.name.Name | str = dns.tsig.default_algorithm, |
| 1611 | ) -> Any: |
| 1612 | """Return a generator for the responses to a zone transfer. |
| 1613 | |
| 1614 | *where*, a ``str`` containing an IPv4 or IPv6 address, where |
| 1615 | to send the message. |
| 1616 | |
| 1617 | *zone*, a ``dns.name.Name`` or ``str``, the name of the zone to transfer. |
| 1618 | |
| 1619 | *rdtype*, an ``int`` or ``str``, the type of zone transfer. The |
| 1620 | default is ``dns.rdatatype.AXFR``. ``dns.rdatatype.IXFR`` can be |
| 1621 | used to do an incremental transfer instead. |
| 1622 | |
| 1623 | *rdclass*, an ``int`` or ``str``, the class of the zone transfer. |
| 1624 | The default is ``dns.rdataclass.IN``. |
| 1625 | |
| 1626 | *timeout*, a ``float``, the number of seconds to wait for each |
| 1627 | response message. If None, the default, wait forever. |
| 1628 | |
| 1629 | *port*, an ``int``, the port send the message to. The default is 53. |
| 1630 | |
| 1631 | *keyring*, a ``dict``, the keyring to use for TSIG. |
| 1632 | |
| 1633 | *keyname*, a ``dns.name.Name`` or ``str``, the name of the TSIG |
| 1634 | key to use. |
| 1635 | |
| 1636 | *relativize*, a ``bool``. If ``True``, all names in the zone will be |
| 1637 | relativized to the zone origin. It is essential that the |
| 1638 | relativize setting matches the one specified to |
| 1639 | ``dns.zone.from_xfr()`` if using this generator to make a zone. |
| 1640 | |
| 1641 | *lifetime*, a ``float``, the total number of seconds to spend |
| 1642 | doing the transfer. If ``None``, the default, then there is no |
| 1643 | limit on the time the transfer may take. |
| 1644 | |
| 1645 | *source*, a ``str`` containing an IPv4 or IPv6 address, specifying |
| 1646 | the source address. The default is the wildcard address. |
| 1647 | |
| 1648 | *source_port*, an ``int``, the port from which to send the message. |
| 1649 | The default is 0. |
| 1650 | |
| 1651 | *serial*, an ``int``, the SOA serial number to use as the base for |
| 1652 | an IXFR diff sequence (only meaningful if *rdtype* is |
nothing calls this directly
no test coverage detected