SVCB record

On this page 8

An SVCB record (Service Binding record) is a DNS resource record of type 64 that tells a client where and how to reach a service: which alternative endpoint to use, which application protocols it supports, which port it listens on and which connection parameters apply. Among DNS records on the Internet, it is the general-purpose member of the service binding family defined in RFC 9460, published in November 2023.

The record solves a long-standing gap. Before SVCB, a client first resolved an address and only then discovered, through extra round trips or failed attempts, whether the server supported a given protocol, port or encryption feature. SVCB moves that knowledge into the initial DNS answer, so the client can choose the best connection path before the first packet is sent.

How an SVCB record binds a name to a service

An SVCB record binds an owner name to one or more service endpoints through three fields: SvcPriority, TargetName and a list of SvcParams. The priority selects the operating mode and the preference order, the target names the host that actually serves the traffic, and the parameters carry key-value hints about how to connect.

Owner names for SVCB usually carry underscore-prefixed labels that identify the protocol and, where needed, the port, following the attrleaf convention. A record for a hypothetical service on port 8443 might live at _8443._foo.api.example.com, while resolver discovery uses names such as _dns.resolver.arpa. Each protocol that adopts SVCB must publish a mapping document that defines its naming scheme and which parameters it uses.

The following table summarizes the wire and presentation fields of a single SVCB record.

FieldContentPurpose
SvcPriority16-bit integer, 0 to 655350 selects AliasMode; 1 or higher selects ServiceMode and sets preference
TargetNameDomain name or “.”Host that serves the endpoint; “.” means the owner name itself in ServiceMode
SvcParamsOrdered key-value pairsProtocols, port, address hints and encryption settings
Fields of an SVCB record

A typical presentation-format entry reads _dns.resolver.arpa. 7200 IN SVCB 1 dot.example.net. alpn=dot port=853. It states that the preferred endpoint is dot.example.net, that it speaks DNS over TLS and that it listens on port 853.

AliasMode and ServiceMode

The SvcPriority value decides the mode of every SVCB record, and the two modes behave very differently. AliasMode (priority 0) redirects the lookup to another name, much like a CNAME, but it may sit at a zone apex where a CNAME is forbidden. ServiceMode (priority 1 or higher) describes a concrete endpoint with its parameters.

Clients collect all ServiceMode records for a name and try them in ascending priority order, so a lower number means a more preferred endpoint. Records with equal priority are treated as equivalent and may be shuffled for load distribution. An AliasMode record should appear alone in its RRset; if ServiceMode records are present at the same name, clients ignore the alias.

AspectAliasModeServiceMode
SvcPriorityExactly 01 to 65535
SvcParams allowedNoneAny defined keys
TargetName “.”Service is not availableUse the owner name as the host
Typical roleApex delegation to a providerEndpoint description with hints
Records per nameOneOne or many, ranked by priority
Comparison of the two SVCB modes

SvcParams keys and what they signal

SvcParams are registered keys maintained in an IANA registry, and each key has a defined wire format and presentation syntax. A client must ignore keys it does not understand, unless the record lists them under the mandatory key, in which case a client that lacks support must skip that record entirely.

KeyNumberMeaningExample value
mandatory0Keys the client must understandmandatory=alpn,port
alpn1Supported application protocolsalpn=h2,h3
no-default-alpn2Default protocol is not offeredno-default-alpn
port3Alternative TCP or UDP portport=8443
ipv4hint4IPv4 addresses for faster startipv4hint=192.0.2.1
ech5Encrypted Client Hello configurationech=AEn+DQBF…
ipv6hint6IPv6 addresses for faster startipv6hint=2001:db8::1
dohpath7URI template for DNS over HTTPSdohpath=/dns-query{?dns}
Commonly used SvcParams keys

Address hints are advisory: a client may use them to open a connection immediately, but it should still resolve the TargetName for A and AAAA records and prefer those answers once they arrive. The ech parameter is the main delivery channel for Encrypted Client Hello, which hides the requested server name from on-path observers.

SVCB overlaps with several older and newer records, but it is the only one that combines redirection, endpoint selection and protocol hints in a single generic format. The HTTPS record, type 65, is an SVCB-compatible variant with the same syntax, specialized for the https and http URI schemes so that web clients do not need underscore labels.

RecordMain functionKey difference from SVCB
HTTPS recordService binding for web originsSame format, fixed to HTTPS, no prefix label
SRV recordHost and port for a serviceNo protocol hints, no apex alias, weight-based balancing
CNAMEName-wide aliasCannot exist at the apex or beside other records
ALIAS recordProvider-specific apex flatteningNot a standard type; resolved by the authoritative server
NAPTR recordRewrite rules for URI discoveryRegex-based, complex, rarely used outside telephony
SVCB and neighboring record types

In practice, new protocols adopt SVCB rather than SRV because it carries capability information and supports Encrypted Client Hello. SRV remains common for established services such as SIP and XMPP, and both can coexist in the same zone.

Deploying SVCB records in practice

Deploying SVCB requires support in three places: the authoritative DNS software or hosting panel, the recursive resolvers that clients use, and the client application itself. Because SVCB is a standard type, most modern resolvers pass it through transparently even when they do not interpret it, and many perform additional section processing that returns the target addresses in the same response.

SituationRecommended recordReason
Resolver advertises encrypted transportsSVCB at _dns nameDiscovery of Designated Resolvers relies on it
Web origin with HTTP/3 and ECHHTTPS recordBrowsers query type 65 for https URLs
Apex domain hosted on a CDNAliasMode SVCB or HTTPSStandard apex redirection without CNAME
Custom protocol on a nonstandard portServiceMode SVCBPort and protocol hints in one answer
Legacy client base onlySRV or A and AAAAOlder clients ignore SVCB
Deployment decisions for SVCB

A sensible TTL range is similar to that of address records, often 300 to 7200 seconds, because hints and ECH keys must stay consistent with the real endpoints. Operators who rotate ECH keys should keep TTLs short enough that clients do not cache an outdated configuration for long.

Limitations and common mistakes

SVCB improves connection setup only when clients actually query it, and client support remains uneven outside browsers and resolver discovery. The record also adds operational surface: wrong hints or stale parameters can send traffic to an endpoint that no longer exists.

  • Mixing AliasMode and ServiceMode at one name, which makes clients ignore the alias.
  • Publishing address hints that drift from the actual A and AAAA records after a migration.
  • Listing a key under mandatory without need, which causes older clients to skip the record.
  • Assuming SVCB replaces address records; clients still need A and AAAA data for the TargetName.
  • Relying on ECH without DNSSEC or encrypted DNS, since an attacker who alters the answer can strip the configuration.

Security depends on the integrity of the DNS path. Without DNSSEC validation or an encrypted, trusted resolver, an on-path attacker can remove or forge SVCB data and force a downgrade to a plain connection. Clients are therefore designed to fail safely, falling back to ordinary connection behavior instead of trusting an unverified record blindly.

Explained without jargon

When a device wants to reach an online service, it first asks the DNS for an address. An SVCB record adds a short note to that answer: which building to go to, which door is open and which languages are spoken inside. The device no longer has to knock on several doors to find out.

The practical result is faster and more private connections. The device can pick a modern protocol, use the right port and turn on extra encryption from the very first message, because all the instructions arrive together with the address.

A typical use case

A company runs its own recursive resolver for 2,000 employee laptops and wants them to switch from unencrypted DNS on port 53 to DNS over HTTPS without touching each device. The network team publishes an SVCB record at _dns.resolver.arpa with priority 1, the target doh.corp.example, the parameters alpn=h2,h3 and dohpath=/dns-query{?dns}, plus a second record with priority 2 for DNS over TLS on port 853.

Operating systems that support Discovery of Designated Resolvers query that name, read the endpoints in priority order and upgrade automatically to encrypted DNS. Within a week, monitoring shows that most queries from supported systems arrive over HTTPS, while older laptops continue to use port 53 without errors, because they simply ignore the record.