URI Record
Uniform Resource Identifier
- Type code
- 256
- Status
- In use
- Defined in
- RFC 7553
What the URI record is for
RFC 7553 defines URI as a way to publish where a service lives as a full URI rather than a host and port. Like SRV, the service is encoded in underscore labels on the owner name (_service._proto.example.com, or reversed ENUM service parameters), and clients choose among several records by priority and weight.
A client must look for URI records explicitly, so they only matter to software written to use them. One real use is Kerberos: MIT Kerberos and FreeIPA can find a KDC, including a KDC proxy over HTTPS, through URI records at _kerberos.<realm>.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| Priority | 16 bits | Lower values are tried first. |
| Weight | 16 bits | The relative chance of choosing this record among records with the same priority. |
| Target | variable | The URI (RFC 3986). It fills the rest of the RDATA and is not a length-prefixed character-string, so it has no 255-octet limit. |
Zone file syntax
<owner> <ttl> IN URI <priority> <weight> "<target>"
Example
The URI record at _kerberos.fedoraproject.org, fetched from live DNS on 27 November 2026:
_kerberos.fedoraproject.org. 300 IN URI 10 1 "krb5srv:m:kkdcp:https://id.fedoraproject.org/KdcProxy/"
Fedora's Kerberos realm advertises its KDC proxy this way.
Common mistakes
- Publishing the record at the bare domain instead of under the service labels (_service._proto). Clients only query the service name.
- Leaving the target unquoted, or empty. The target is written in double quotes and RFC 7553 says it must not be an empty URI.
- Expecting browsers to follow URI records to redirect a domain. Web browsers don't look them up.
Specifications
- RFC 7553: The Uniform Resource Identifier (URI) DNS Resource Record
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.