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%
Provide a context-managed override that routes Python's socket-level hostname lookups through a configurable DNS resolver built with the dependency. The override must be reversible and safe for repeated use.
socket.getaddrinfo calls to resolve via that resolver instead of OS defaults. @test@generates
from __future__ import annotations
from typing import Iterable, Optional
class SystemResolverOverride:
def __init__(self, nameservers: Iterable[str], *, timeout: Optional[float] = None, search: Optional[Iterable[str]] = None) -> None: ...
def activate(self) -> None: ...
def restore(self) -> None: ...
def __enter__(self) -> "SystemResolverOverride": ...
def __exit__(self, exc_type, exc, tb) -> None: ...
@property
def active(self) -> bool: ...Provides resolver override hooks to route Python socket DNS lookups through configurable nameservers. @satisfied-by