Configure DNS HTTPS & SVCB Records: RFC 9460 Guide

Learn how to configure DNS HTTPS and SVCB records under RFC 9460. Enable zone apex aliasing, HTTP/3 ALPN hints, Encrypted Client Hello, and dig validation.

Configure DNS HTTPS & SVCB Records: RFC 9460 Guide
IETF RFC 9460 DNS Standard

To configure DNS HTTPS and SVCB records: Publish a Type 65 (HTTPS) or Type 64 (SVCB) DNS resource record under RFC 9460 using AliasMode (priority 0) for zone apex aliasing or ServiceMode (priority 1+) with SvcParams such as alpn=h2,h3, ipv4hint, and port, then verify propagation with dig +short HTTPS.[1][6]

Follow this technical runbook to deploy standards-compliant service binding records across authoritative BIND 9 zones, Cloudflare DNS-only or proxied hostnames, and HTTP/3 Nginx origins without breaking TLS handshakes.


What Are DNS HTTPS and SVCB Records Under RFC 9460?

Traditional web clients resolve only A and AAAA records before opening a TCP connection, forcing browsers to discover HTTP/3 (QUIC) support or alternative endpoints afterward via Alt-Svc response headers.[1] That reactive handshake wastes round-trip time and leaves the initial TLS ClientHello Server Name Indication (SNI) visible in plaintext to network observers.[1][4]

Ratified by the IETF in November 2023, RFC 9460 introduces two extensible DNS resource record types—SVCB (Type 64) for general network services and HTTPS (Type 65) as an HTTP-specific profile.[1] Clients receive protocol negotiation hints, IP address hints, and Encrypted Client Hello (ECH) public keys inside the very first DNS lookup.[1][2]

Domain administrators managing authoritative zones through Nextgen Domain Registration can publish HTTPS and SVCB records alongside CAA and DNSSEC to cut connection latency and eliminate apex CNAME limitations.[1]


DNS HTTPS vs. SVCB Records: RFC 9460 Specification Matrix

Understanding how AliasMode differs from ServiceMode—and when to use Type 65 instead of Type 64—prevents resolution loops and self-consistency rejections.[1]

Record Attribute HTTPS (RR Type 65) SVCB (RR Type 64) Operational Rule (RFC 9460)
Target Protocol Scope https:// and http:// web origins Non-HTTP services (DoH, custom schemes) HTTPS inherits SVCB wire format and SvcParam registry[1]
Standard Port QNAME Bare hostname (example.pk) for port 443 Uses Port Prefix Naming (_port._scheme.host) Standard port 443 omits _443._https prefix for wildcard DNSSEC[1]
Non-Standard Port QNAME _8443._https.example.pk _853._dns.ns1.example.pk Port Prefix Naming applies whenever port differs from scheme default[1]
AliasMode (Priority = 0) @ 7200 IN HTTPS 0 cdn.example.net. @ 7200 IN SVCB 0 svc.example.net. Aliases apex without blocking MX/TXT; SvcParams MUST be ignored[1]
ServiceMode (Priority >= 1) 1 . alpn=h2,h3 1 svc1.example.pk. alpn=dot Ordered endpoints; . reuses the record’s own owner name[1]

Standardized IANA SvcParamKeys Reference

In ServiceMode, each record carries key-value SvcParams registered in the IANA DNS SVCB Service Parameter Keys table:[2]

Key Number Presentation Name Purpose & Syntax Example Governing Standard
0 mandatory Declares keys a client must understand (mandatory=alpn,port) RFC 9460, Section 8[1][2]
1 alpn Advertises supported ALPN tokens (alpn=h2,h3) RFC 9460, Section 7.1[1][2]
2 no-default-alpn Suppresses implicit fallback to default http/1.1 ALPN RFC 9460, Section 7.1[1][2]
3 port Overrides target TCP/UDP port (port=8443) RFC 9460, Section 7.2[1][2]
4 / 6 ipv4hint / ipv6hint Optimistic IP hints (ipv4hint=192.0.2.10) alongside A/AAAA RFC 9460, Section 7.3[1][2]
5 ech Base64 TLS Encrypted ClientHello config (ech=...) RFC 9848 / IANA SVCB[2]
7 dohpath URI template for DNS-over-HTTPS endpoints (dohpath=/dns-query{?dns}) RFC 9461 / IANA SVCB[2]

How to Configure DNS HTTPS and SVCB Records Step by Step

Deploying RFC 9460 records cleanly requires matching your web server capabilities with your authoritative DNS zone structure so clients never receive unserviceable ALPN or port hints.[1]

Step 1: Align Origin Web Server Capabilities (HTTP/3 & TLS 1.3)

Do not advertise alpn=h3 in DNS unless your origin server or edge proxy listens on UDP port 443 with HTTP/3 active. On self-managed infrastructure such as Nextgen Hosting Dedicated Servers, NGINX supports HTTP/3 natively via ngx_http_v3_module (introduced in NGINX 1.25.0 with OpenSSL 1.1.1+, BoringSSL, LibreSSL, or QuicTLS).[5]

Configure a dual TCP/UDP listener block so both TLS-over-TCP (h2) and QUIC (h3) negotiate cleanly on port 443:[5]

server {
    listen 443 quic reuseport;
    listen [::]:443 quic reuseport;
    listen 443 ssl;
    listen [::]:443 ssl;

    server_name example.pk;

    ssl_certificate     /etc/letsencrypt/live/example.pk/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/example.pk/privkey.pem;
    ssl_protocols       TLSv1.2 TLSv1.3;

    http3 on;

    location / {
        add_header Alt-Svc 'h3=":443"; ma=86400';
        try_files $uri $uri/ =404;
    }
}

Ensure host and network firewalls permit UDP port 443 inbound alongside TCP port 443 before publishing h3 in your DNS record.

Step 2: Publish HTTPS or SVCB Records in Authoritative DNS (BIND 9)

Modern ISC BIND 9 releases support HTTPS and SVCB presentation syntax directly inside zone files without RFC 3597 hex encoding.[6] Choose the pattern matching your topology:

  • Apex ServiceMode for Direct HTTP/2 and HTTP/3 Origins:

    $ORIGIN example.pk.
    @       300     IN A     192.0.2.10
            300     IN AAAA  2001:db8::10
            3600    IN HTTPS 1 . alpn="h2,h3" ipv4hint=192.0.2.10 ipv6hint=2001:db8::10

    Using . as TargetName instructs clients to reuse example.pk as the target hostname and TLS SNI identity.[1]

  • Zone Apex AliasMode Pointing to a CDN or Load Balancer Pool:

    @       300     IN A     192.0.2.10
            3600    IN HTTPS 0 edge-pool.example.net.

    RFC 9460 prohibits including any SvcParams on AliasMode (Priority = 0) records, and clients ignore any parameters present on an alias entry.[1]

  • Multi-Endpoint Failover with Non-Standard Port (8443):

    app     3600    IN HTTPS 1 . alpn="h2,h3"
                    IN HTTPS 2 standby.example.pk. alpn="h2" port=8443

Step 3: Handle Cloudflare Proxied vs. DNS-Only Zones

Cloudflare enforces strict precedence rules between automatic edge synthesis and manual RFC 9460 DNS records:[3]

  • Proxied (Orange Cloud) Hostnames: When HTTP/2 or HTTP/3 and Universal SSL are enabled, Cloudflare automatically generates HTTPS records on the fly—including ech keys when Encrypted Client Hello is active—and ignores any manual HTTPS record you add.[3][4]
  • DNS-Only (Grey Cloud) Hostnames: When routing directly to an origin node such as Nextgen Hosting Pakistan Dedicated Servers, you can add manual HTTPS or SVCB records in the Cloudflare dashboard or API.[3]

Pitfall: Mixing Proxied and DNS-Only Records on the Same Hostname: Cloudflare suppresses manual HTTPS records if any A, AAAA, or CNAME record sharing that exact hostname is set to Proxied (orange cloud). Similarly, disabling Universal SSL stops automatic HTTPS synthesis on proxied hostnames even if an Advanced or Custom Certificate is active.[3]


Verification Checklist: Validating Live HTTPS and SVCB Records

Run these four checks immediately after zone deployment to confirm syntax validity, authoritative delivery, and live HTTP/3 negotiation:

  1. Validate Zone Record Syntax Locally (BIND 9):

    echo "example.pk. 3600 IN HTTPS 1 . alpn=h2,h3" | named-rrchecker

    Confirm named-rrchecker outputs normalized presentation syntax with zero parse errors.[6]

  2. Query Live HTTPS (Type 65) and SVCB (Type 64) Records:

    dig +short HTTPS example.pk
    dig +short TYPE64 _853._dns.ns1.example.pk

    Verify SvcPriority, TargetName (. or FQDN), and quoted alpn="h2,h3" output.[1][6]

  3. Test Self-Consistency of TargetName and Hints: Confirm that every ipv4hint or ipv6hint matches an active A or AAAA record on the TargetName. RFC 9460 requires clients to replace hint connections with the authoritative A/AAAA resolution once received.[1]

  4. Confirm Live QUIC / HTTP/3 Handshake:

    curl -I --http3-only https://example.pk/

    Verify an HTTP/3 200 response without falling back to TCP h2.

Pro Tip: Never Publish an HTTPS Record Before Port 443 TLS Is Validated: Under RFC 9460 Section 9.5, compliant browsers seeing an HTTPS RR automatically upgrade plaintext http:// requests to https:// like an HTTP 307 redirect—and may remove user certificate-warning bypass buttons. Ensure valid WebPKI TLS certificates and matching content exist on HTTPS before publishing the DNS record.[1]


Frequently Asked Questions

Can an HTTPS DNS Record Replace a CNAME at the Zone Apex?

Yes for web traffic. Setting SvcPriority to 0 (AliasMode) lets you point an apex domain (@) to an external CDN or load balancer hostname without violating DNS rules that forbid CNAME records alongside SOA, NS, MX, or TXT records.[1] Because AliasMode only governs the https service scheme, you should still keep baseline A and AAAA records at the apex for legacy clients.[1]

Why Does Cloudflare Ignore My Manual HTTPS DNS Record?

Cloudflare ignores manual HTTPS records under two documented conditions: either the hostname has one or more Proxied (orange cloud) A/AAAA/CNAME records (where Cloudflare synthesizes HTTPS automatically when Universal SSL is active), or you have mixed proxy statuses across records sharing the same hostname.[3] Set every record for that exact name to DNS-only (grey cloud) to serve a custom manual HTTPS record.[3]

Does Publishing an HTTPS DNS Record Automatically Redirect HTTP to HTTPS?

Yes for RFC 9460-compliant browsers. Section 9.5 specifies that when a client performs an HTTPS lookup before loading an http:// URL and receives any AliasMode or compatible ServiceMode record, it upgrades the request to https:// using an internal 307-equivalent redirect prior to transmitting any cleartext HTTP request.[1]

How Do You Query Type 64 and Type 65 Records If dig Fails?

Older DNS utilities compiled before native RFC 9460 support fail when passed the mnemonic HTTPS or SVCB. Pass the numeric IANA RR type codes directly—dig +short TYPE65 example.pk for HTTPS and dig +short TYPE64 _service.example.pk for SVCB—or upgrade to a current ISC BIND 9 dig client.[1][6]

Deploy High-Speed DNS & HTTP/3 Infrastructure with Nextgen Hosting

Launch low-latency Pakistan dedicated servers, automated SSL/TLS provisioning, and modern DNS management built for RFC 9460, DNSSEC, and enterprise uptime.

Manage Domains & DNS Today

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.

Sources & Official References
  1. IETF RFC 9460: Service Binding and Parameter Specification via the DNS (SVCB and HTTPS Resource Records). https://datatracker.ietf.org/doc/html/rfc9460
  2. IANA Registry: DNS Service Bindings (SVCB) Service Parameter Keys (SvcParamKeys). https://www.iana.org/assignments/dns-svcb/dns-svcb.xhtml
  3. Cloudflare Docs: DNS Record Types — SVCB and HTTPS. https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/
  4. Cloudflare Docs: Encrypted Client Hello (ECH). https://developers.cloudflare.com/ssl/edge-certificates/ech/
  5. NGINX Official Documentation: Module ngx_http_v3_module. https://nginx.org/en/docs/http/ngx_http_v3_module.html
  6. ISC BIND 9 Documentation: Man Pages (dig and named-rrchecker). https://bind9.readthedocs.io/en/latest/manpages.html

Disclaimer: This post is for informational and educational purposes only, accurate to the best of our knowledge at publication. It does not constitute advice. We do not guarantee accuracy or completeness and accept no liability for any decisions or losses resulting from reliance on this content.