Upstream moved from hatchling to uv_build; inherit python_uv_build.
Refresh the DDR test skip patch. The zone tests need the idna module for
IDNA 2008; add python3-idna to the ptest RDEPENDS.
Changes:
- Requires Python 3.11+ (2.9.0); httpx2 replaces httpx for HTTPS TCP
connections; DNSSEC gains ML-DSA-44.
- Security (no CVE IDs; GHSA-45c3-73f7-pv4m): name decompression chain
limited to 16 (CPU DoS); crafted WKS record in a zone file could
exhaust memory/CPU (2.9.2); $GENERATE width capped at 127.
- Security (2.9.1): DNSSEC rejects revoked DNSKEY use and mismatched
RRSIG type/class; strict ECDSA/DSA signature lengths; resolver uses
a random query id each time; negative TTL without SOA capped at 300.
- Security (2.9.1): asyncquery.quic() now verifies the server
hostname; XFR responses are checked with is_response(); from_xfr()
ignores out-of-zone records; TSIG checked on DoH/DoQ replies.
- Stricter rdata parsing (SVCB/HTTPS, NSEC3, NID/L64, TLSA, SSHFP,
LOC, TTL); escape control characters in to_unicode/EDNS text output.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
testQueryUDPFallbackWithSocket fails intermittently because it connects
its TCP socket with a 2s socket timeout, and the resulting TimeoutError
is not dns.exception.Timeout, so the test's retry_on_timeout decorator
does not retry it. Retry TimeoutError too and give the connect the same
4s budget as the query.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
The live resolver tests use the system resolver configuration. When the
network is configured by the kernel ip= parameter and nothing in userspace
writes /etc/resolv.conf, the nameserver is only available in /proc/net/pnp
and the tests fail with "no nameservers". Seed resolv.conf from it when
it has no nameserver entry.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
test_basic_ddr_sync and test_basic_ddr_async only check that the
Internet is reachable. On networks that intercept port 53, 1.1.1.1 and
8.8.8.8 still answer ordinary queries but return NXDOMAIN for
_dns.resolver.arpa SVCB, so try_ddr() cannot upgrade the nameservers
and the tests fail:
FAIL: tests/test_ddr.py:test_basic_ddr_sync
FAIL: tests/test_ddr.py:test_basic_ddr_async
assert isinstance('1.1.1.1', dns.nameserver.Nameserver)
Add a patch to skip them unless both resolvers return DDR SVCB records.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>