DNS & Domain Names

SVCB and HTTPS Records: Newer Ways to Describe a Service

Understand how SVCB and HTTPS records tell clients which protocols, ports and endpoints to use before they ever connect.

Key takeaways

  • SVCB is the general record for describing a service, and HTTPS is its companion type for web origins.
  • A priority of 0 means the record is an alias, while higher numbers describe actual connection options in order of preference.
  • Parameters such as alpn, port, ipv4hint and ipv6hint save round trips and guide protocol choice.
  • Clients that don't understand these records keep using ordinary address records, so you should keep publishing those.

SVCB and HTTPS records let a domain tell a client how to connect before the first packet goes to the server. One DNS answer can say which protocols the service speaks, which port to use, which alternate host provides it and which addresses to try. RFC 9460 defines both types.

HTTPS records are the web-specific version, and they're the ones you're most likely to meet. If your DNS provider or CDN shows an "HTTPS" record type, it can help browsers reach your site using HTTP/3 right away, and it can solve part of the long-standing problem of aliasing a bare domain.

What older records leave out

An A or AAAA record gives an address and nothing else. The client has to guess the rest: it assumes a standard port, connects, negotiates a protocol and only then learns what the server supports. A website that offers HTTP/3 has traditionally had to announce it in a response header after a first connection over TCP.

SRV records can supply a host and port, but web browsers never adopted them, and they say nothing about protocols or encryption settings. SVCB (short for "service binding") was designed to carry those details and to be extensible.

What a client learns from each record
A / AAAA An IP address No port or protocol Cannot alias the whole name SRV Host and port Priority and weight Not used by web browsers HTTPS / SVCB Alias or connection options Supported protocols and port Address hints and extensions A / AAAA An IP address No port or protocol Cannot alias the whole name SRV Host and port Priority and weight Not used by web browsers HTTPS / SVCB Alias or connection options Supported protocols and port Address hints and extensions

The format

Each record has a priority, a target name and an optional list of parameters.

example.com.  3600  IN  HTTPS  1 . alpn="h3,h2"

Read it like this: priority 1, target . and one parameter. A lone dot as the target in this mode means "this same name". The alpn parameter lists protocol identifiers, where h3 is HTTP/3 and h2 is HTTP/2. ALPN stands for Application-Layer Protocol Negotiation, the TLS mechanism where those identifiers come from.

A fuller example:

example.com.  3600  IN  HTTPS  1 svc.example.net. alpn="h3,h2" port=8443
example.com.  3600  IN  HTTPS  2 . alpn="h2"

The first option sends clients to svc.example.net on port 8443. The second is a fallback on the original name.

Inside an HTTPS record
1 1 svc.example.net. 2 alpn="h3,h2" 3 port=8443 4 ipv4hint=192.0.2.10 5 Priority 0 means alias. Higher values are options, lowest preferred. 1 Target The host that provides the service. A dot means this name. 2 Protocols What the endpoint speaks, so the client can choose early. 3 Port A non-default port to connect to. 4 Address hint Lets the client start before address lookups finish. 5 1 1 svc.example.net. 2 alpn="h3,h2" 3 port=8443 4 ipv4hint=192.0.2.10 5 Priority 0 means alias. Higher values are options, lowest preferred. 1 Target The host that provides the service. A dot means this name. 2 Protocols What the endpoint speaks, so the client can choose early. 3 Port A non-default port to connect to. 4 Address hint Lets the client start before address lookups finish. 5

The main parameters

Parameter Purpose
alpn Application protocols the endpoint supports
no-default-alpn Says the protocol's usual default is not supported
port Port to use if it differs from the default
ipv4hint, ipv6hint Suggested addresses for the target
mandatory Parameters a client must understand to use the record
ech Configuration for Encrypted Client Hello

The ech parameter deserves a word. Normally, the server name a client asks for during a TLS handshake is visible to observers on the network. Encrypted Client Hello protects it, and the client needs a public key in advance, which DNS can deliver. Deployment depends on servers, CDNs and browsers, so check what your provider supports. It works best alongside encrypted lookups such as DNS over HTTPS, since otherwise the query itself reveals the name.

Alias mode and the bare domain

A priority of 0 switches the record into alias mode. It says "the service for this name is provided by that other name; go ask about it".

example.com.  IN  HTTPS  0 site.hosting.example.net.

This is valuable because a CNAME can't sit at the apex of a zone, where SOA and NS records must live. The background is in the apex domain problem. An HTTPS record in alias mode can coexist with those records and redirect web clients to your host's name.

The catch is that only clients that understand HTTPS records follow it. Older browsers, many libraries and most command-line tools still look for A and AAAA records. For now, keep address records at the apex, or use your provider's flattening feature, and treat the alias as an improvement for capable clients.

Unlike a CNAME, an alias-mode record redirects only the service lookup for this record type. Mail records and TXT records on the same name are unaffected.

How a browser uses the records

A supporting browser typically asks for the HTTPS record at the same time as the A and AAAA records. If a usable answer arrives, it can:

  • connect directly with HTTP/3 over QUIC if h3 is listed,
  • upgrade a plain http:// address to HTTPS before sending anything unencrypted,
  • follow an alias or alternate endpoint,
  • start connecting to hinted addresses while other lookups finish.

The upgrade behavior overlaps with HSTS. It doesn't replace it, because HSTS is remembered by the browser after a visit or through a preload list, and a DNS answer can be removed by an attacker who controls the network path unless it is protected. Publishing both is reasonable.

If no HTTPS record exists, nothing changes. The browser behaves as it always has, and may learn about HTTP/3 later from the Alt-Svc response header.

Services other than the web

SVCB is the generic form. Other protocols define how to use it, usually with underscore labels that name the service. One practical use is letting a client discover the encrypted endpoints of a DNS resolver. The record looks much like an HTTPS record, but the owner name and meaning of parameters are defined by the protocol that adopted it.

For non-default web ports, the HTTPS record is published at a prefixed name such as _8443._https.example.com. For the ordinary port 443, you publish it at the hostname itself.

Publishing and checking records

Many managed DNS services create HTTPS records automatically when their CDN or proxy is enabled. If you manage the zone yourself, check that your DNS software supports the type.

  1. Confirm that your server really supports every protocol you list. Advertising h3 without a working HTTP/3 listener, or with UDP port 443 blocked by a firewall, wastes connection attempts.
  2. Add the record with a modest TTL while testing.
  3. Keep A and AAAA records in place.
  4. Query it and check the output.
dig example.com HTTPS +short
dig example.com TYPE65 +short

The numeric type for HTTPS is 65 and for SVCB is 64. Older tools may print the data as a block of hexadecimal, which means the tool is out of date and says nothing about your record.

A worked example

Say your site runs on one server at 192.0.2.10 and 2001:db8::10, and you've just enabled HTTP/3 alongside HTTP/2. You want browsers to learn that from DNS. Your zone might contain:

example.com.      300  IN  A      192.0.2.10
example.com.      300  IN  AAAA   2001:db8::10
example.com.      300  IN  HTTPS  1 . alpn="h3,h2"
www.example.com.  300  IN  CNAME  example.com.

The www name inherits all of it, because a query for any record type on an alias follows the CNAME to its target. No hints are included here, since the target is the name itself and the client is already asking for its addresses.

Before publishing, test the server directly. A build of curl with HTTP/3 support can request your page using that protocol, and your browser's developer tools show the protocol used for each request if you add the Protocol column to the network panel. Check from a network other than your own as well, because some firewalls treat UDP differently from TCP.

After publishing, wait for the TTL to pass and query a couple of public resolvers. If the record appears but browsers still use HTTP/2, that's not necessarily a fault. Clients weigh network conditions, remember past failures and may only use HTTPS records when their own DNS settings allow it. Once you're satisfied, raise the TTL to your normal value.

How it fits with load balancing

Several records at different priorities express preference: clients try the best option first and can fall back to the next. Records that share a priority let clients spread themselves among equal choices. This is coarser than the weighting in SRV records, since there's no weight field. Traffic steering still happens mostly through address answers, anycast and load balancers behind the name.

Alternate targets also let a site use a different provider for one protocol. If you do that, every endpoint needs a certificate valid for the original name, because the browser still verifies that it is talking to example.com. Moving the connection elsewhere changes where packets go, and leaves the identity check unchanged.

What can go wrong

Stale address hints. If you change servers and forget the hints, some clients try old addresses first. Include hints only if your tooling updates them along with the address records.

A wrong ECH configuration. The keys rotate. A static copy pasted into DNS will go out of date, so let the system that manages the keys manage the record.

Mismatched answers across providers. With two DNS providers or two CDNs, records that describe different capabilities can reach clients in confusing combinations.

Caching. Removing a protocol takes effect only as cached records expire. Lower the TTL beforehand, as described in lowering TTL before a cutover.

Should you add one?

If your CDN or DNS host offers HTTPS records and keeps them current, turning them on is low risk. If you hand-maintain a small site on one server over HTTP/2, the gain is modest, and an alpn record you have to remember to update may not be worth it. The strongest cases are sites that want fast HTTP/3 adoption, need apex aliasing for capable clients or are deploying Encrypted Client Hello.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in DNS & Domain Names →

Latest news on this topic