tessl install tessl/pypi-dnspython@1.16.0DNS toolkit for Python supporting almost all record types with high-level and low-level DNS operations
Agent Success
Agent success rate when using this tile
85%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.37x
Baseline
Agent success rate without this tile
62%
A utility that constructs a DNS resolver which prefers DDR-discovered encrypted endpoints and falls back to configured encrypted transports while honoring custom security settings.
@generates
from typing import Iterable, Optional
class EncryptedResolver:
def __init__(
self,
service_name: str,
bootstrap_ip: str,
doh_endpoints: Optional[Iterable[str]] = None,
doq_endpoints: Optional[Iterable[str]] = None,
dot_endpoints: Optional[Iterable[str]] = None,
tls_settings: Optional[dict] = None,
): ...
def refresh(self) -> None:
"""Re-run discovery/configuration using DDR and provided fallbacks."""
def resolve(self, hostname: str, rrtype: str = "A") -> list[str]:
"""Resolve a hostname using the configured encrypted resolver."""
@property
def transport(self) -> str:
"""Current transport label (e.g., 'DDR', 'DoH', 'DoQ', 'DoT')."""DNS resolution with DDR discovery and encrypted resolver transports.