HTTPS record at a glance

FieldValue
Type code65 (HTTPS) and 64 (SVCB)
Defined inRFC 9460
ValuePriority, target name and key=value parameters
Allowed at the apexYes, which lets an apex alias a CDN hostname for HTTPS clients
Used byMajor browsers for HTTPS; SVCB for other protocols such as encrypted DNS

Here is how an HTTPS record looks in a zone file:

example.com.      3600  IN  HTTPS  1 . alpn="h3,h2" ipv4hint=192.0.2.10 ipv6hint=2001:db8::10
www.example.com.  3600  IN  HTTPS  0 example-com.cdn.example.net.

The first record is ServiceMode: the apex itself (the target "." means "this name") serves HTTP/3 and HTTP/2, with address hints. The second is AliasMode: priority 0 sends clients to the CDN hostname, much like a CNAME.

AliasMode and ServiceMode

A priority of 0 makes the record an alias: clients look up HTTPS records at the target name instead. Unlike a CNAME, an alias HTTPS record can sit at the zone apex beside SOA and NS, which solves the old "CNAME at the apex" problem for clients that understand it. A priority of 1 or more is ServiceMode: the record describes one way to connect, and several records with different priorities offer alternatives.

Common parameters

ParameterWhat it tells the client
alpnProtocols the endpoint supports, such as h3 and h2, so a browser can try HTTP/3 on the first connection
portA non-default port
ipv4hint, ipv6hintAddresses to try while the A and AAAA lookups finish
echKeys for Encrypted Client Hello, which hides the site name in the TLS handshake
no-default-alpnThe endpoint does not support the default protocol (HTTP/1.1 for HTTPS records)

An HTTPS record also tells browsers the site wants HTTPS, so they upgrade http:// links much like HSTS. SVCB and HTTPS records goes deeper, including how CDNs publish them for you.

SVCB for other services

SVCB is the general form; HTTPS is SVCB specialized for the web. Other protocols define their own names with an underscore prefix. One example is Discovery of Designated Resolvers (RFC 9462): a resolver publishes SVCB at _dns.resolver.arpa so clients can find its DNS over HTTPS or DNS over TLS endpoint.

How to look up an HTTPS record

Each tool below sends the query to your default resolver unless you name a server. Swap in your own domain for example.com, and add a public resolver such as 1.1.1.1 to compare answers with what your network sees. Older versions of dig and nslookup do not know the HTTPS name; use the TYPE65 form with them.

dig (macOS, Linux, WSL)

CommandWhat it does
dig example.com HTTPSThe HTTPS record set, with TTL
dig +short example.com HTTPSPriority, target and parameters only
dig +short example.com TYPE65The same query for an older dig
dig +short _dns.resolver.arpa SVCBAsk your resolver to describe its encrypted DNS endpoints

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup -type=HTTPS example.comThe HTTPS records, on recent macOS and Linux builds
nslookup -type=TYPE65 example.comThe generic form, for builds that do not know the HTTPS name

PowerShell (Windows)

CommandWhat it does
(Invoke-RestMethod 'https://dns.google/resolve?name=example.com&type=65').AnswerThe HTTPS records from Google Public DNS
(Invoke-RestMethod 'https://dns.google/resolve?name=www.example.com&type=65').AnswerCheck the www name too, which often differs
HTTPS records and PowerShell

Resolve-DnsName has no HTTPS or SVCB value for -Type; its list stops at older types such as DS, DNSKEY and NSEC3. The Invoke-RestMethod rows ask Google Public DNS over HTTPS instead, using the type number 65, so they show what a public resolver sees rather than your own network. Running nslookup from PowerShell also works where your nslookup decodes the type.

Common mistakes

  • Advertising h3 when the server or firewall does not allow QUIC. Browsers fall back to TCP, but the first connection is slower.
  • Stale address hints. If ipv4hint and the A record disagree, clients may try a dead address first.
  • An HTTPS record that conflicts with your CDN’s own. Many CDNs publish HTTPS records automatically; check before adding one by hand.
  • Expecting every client to follow AliasMode. Clients that do not support HTTPS records still need A and AAAA at the apex.

HTTPS records in Domain Visualizer

Domain Visualizer does not query HTTPS or SVCB records yet. Use the commands above to check them.

FAQ

Do I need an HTTPS record?

No. Sites work without one. It speeds up the first connection, lets browsers use HTTP/3 and ECH straight away, and can alias the apex to a CDN for supporting clients.

Is an HTTPS record related to my TLS certificate?

No. Despite the name, it holds connection hints, not certificate data. Certificates are still validated the normal way, and CAA controls who may issue them.

Which browsers use HTTPS records?

Recent versions of Chrome, Edge, Firefox and Safari query HTTPS records, though some only do so when using encrypted DNS. Support continues to expand.

Sources and further reading