Skip to content

feat: add HTTPS (RFC 9460) DNS record type#1360

Merged
sbezludny merged 3 commits into
mainfrom
sergii/dns-https-record-type
Jun 24, 2026
Merged

feat: add HTTPS (RFC 9460) DNS record type#1360
sbezludny merged 3 commits into
mainfrom
sergii/dns-https-record-type

Conversation

@sbezludny

Copy link
Copy Markdown
Contributor

What

Adds the HTTPS (RFC 9460, DNS type 65 / SVCB family) record type to the DNS check construct's DnsRecordType union, so monitoring-as-code can query a domain's HTTPS service-binding record — e.g. verify HTTP/3 advertisement (alpn), IP hints (ipv4hint/ipv6hint), or ECH.

Changes

  • constructs/dns-request.ts — add 'HTTPS' to DnsRecordType, with a doc note on the recordType field.
  • constructs/dns-assertion.ts — update the DnsAssertionBuilder @example to the recommended forms:
    • DnsAssertionBuilder.textAnswer('alpn="([^"]*)"').contains('h3') (capture group scopes the match to the alpn value)
    • DnsAssertionBuilder.jsonAnswer('$.Answer[0].data').contains('alpn="h3')

Context

Pairs with the runner + API support and the webapp record-type option in the main monorepo (runner/API and webapp PRs). The runner renders the HTTPS record's rdata into the answer (1 . alpn="h3,h2" ipv4hint="…" …), which these assertions target.

@sbezludny sbezludny requested a review from sorccu June 24, 2026 09:36
@sbezludny sbezludny enabled auto-merge (squash) June 24, 2026 09:36
Comment thread packages/cli/src/constructs/dns-request.ts Outdated
sorccu
sorccu previously approved these changes Jun 24, 2026
Adds 'HTTPS' to the DnsRecordType union so DNS check constructs can monitor a domain's HTTPS service-binding record (HTTP/3 advertisement via alpn, plus ipv4hint/ipv6hint/ech). Updates the DnsAssertionBuilder @example to the recommended assertion forms.
@sorccu sorccu force-pushed the sergii/dns-https-record-type branch from 7c2e3e2 to baaec81 Compare June 24, 2026 10:52
@sbezludny sbezludny disabled auto-merge June 24, 2026 10:53
@sbezludny sbezludny requested a review from sorccu June 24, 2026 11:06
@sbezludny sbezludny enabled auto-merge (squash) June 24, 2026 11:06
@sbezludny sbezludny merged commit fad89ba into main Jun 24, 2026
13 checks passed
@sbezludny sbezludny deleted the sergii/dns-https-record-type branch June 24, 2026 17:30
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