Skip to content

API: handle OPTION requests on DomainViewSet correctly; make TTL handling on zone import explicit - #1215

Merged
peterthomassen merged 2 commits into
mainfrom
20260729_options-method
Oct 13, 2026
Merged

peterthomassen merged 2 commits into
mainfrom
20260729_options-method

Conversation

@peterthomassen

Copy link
Copy Markdown
Member

No description provided.

Comment thread api/desecapi/views/domains.py
@peterthomassen peterthomassen changed the title fix(api): handle OPTION requests on DomainViewSet correctly API: handle OPTION requests on DomainViewSet correctly; make TTL handling on zone import explicit Oct 13, 2026
Records without a TTL inherit the most recently stated TTL (RFC 1035
Section 5.1), and the SOA MINIMUM field serves as the default TTL only
when no TTL has been stated at all (RFC 2308 Section 4). dnspython 2.9.0
made this its default behavior. The `rfc2308_ttl` parameter of
`dns.zone.from_text()` is set explicitly nonetheless, and a test covers
the behavior, as protection against regressions.

Fixes #1262
@peterthomassen
peterthomassen force-pushed the 20260729_options-method branch from c7b1206 to cadc9b1 Compare October 13, 2026 16:15
@peterthomassen
peterthomassen merged commit cadc9b1 into main Oct 13, 2026
23 of 26 checks passed
@peterthomassen
peterthomassen deleted the 20260729_options-method branch October 13, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants