Commit Graph
6 Commits
Author SHA1 Message Date
Khem Raj 1eb03f923d python3-dnspython: upgrade 2.8.0 -> 2.9.2
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>
2026-11-17 12:58:54 -08:00
Khem Raj 73caca3af7 python3-dnspython: Retry socket timeouts in ptests
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>
2026-11-12 23:24:51 -08:00
Khem Raj d7e3363539 python3-dnspython: seed resolv.conf from /proc/net/pnp in run-ptest
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>
2026-10-15 22:22:02 -07:00
Khem Raj 084f3411c7 python3-dnspython: skip DDR tests when DDR is not available
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>
2026-09-12 16:52:16 -07:00
Tim Orling 8667e7db0f python3-dnspython: switch to pytest --automake
* Also replace ${PYTHON_PN} with python3

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-02-16 16:42:34 -08:00
Zheng Ruoqin 393ed2a056 python3-dnspython: Enable ptest
Signed-off-by: Zheng Ruoqin <zhengrq.fnst@cn.fujitsu.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-17 08:57:58 -07:00