DNS toolkit for Python supporting almost all record types with high-level and low-level DNS operations
85
Compose and send dynamic DNS update transactions for a single zone using queued operations with prerequisites and deletions.
@generates
class DynamicUpdater:
def __init__(self, zone: str, server: str, port: int = 53, timeout: float | None = None): ...
def queue_replace_a(self, hostname: str, new_address: str, expected_address: str | None = None, ttl: int = 300) -> None: ...
def queue_delete_txt(self, hostname: str, required_token: str | None = None) -> None: ...
def build_message(self):
"""Return the dynamic update message built from queued operations."""
def apply(self) -> dict:
"""Send the update and return {'rcode': str, 'added': int, 'deleted': int, 'applied': bool}."""Provides dynamic DNS update helpers and transports.
Install with Tessl CLI
npx tessl i tessl/pypi-dnspythondocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10