DNS records

URI record

A URI record publishes a full URI (such as https://… or ftp://…) for a service at a name, with priority and weight like SRV. Unlike SRV, it can carry a scheme and path. Few applications use it.

Record typeURI
Type number256
Used forServices
How commonRare
Defined inRFC 7553

Format

_<service>._<protocol>.<name> <ttl> IN URI <priority> <weight> "<uri>"
FieldWhat it meansAccepted values
PriorityLower is tried first.0 to 65535.
WeightShare among equal priorities.0 to 65535.
TargetThe URI.A quoted URI such as "https://docs.example.com/".

Check a URI record

Type or paste a record in zone-file form (name, TTL, type, value) or just its value. Each part is explained as you type.

A valid URI record.

PartWhat it means
Name_ftp._tcpA service name. Underscore names hold records for a protocol (such as _dmarc or _sip._tcp), not a website.
TTL3600Resolvers may keep this answer for 1 hour before asking again. Changes can take that long to reach everyone.
ClassINInternet. Every record you'll write uses IN.
TypeURIA URI for a service.
Priority10Lower is tried first.
Weight1Share of traffic among targets with the same priority.
Targetftp://files.example.com/publicThe URI clients should use.

Examples

An FTP location

_ftp._tcp 3600 IN URI 10 1 "ftp://files.example.com/public"

A client looking for FTP gets the full address with a path.

Look up URI records

TTL

Common mistakes

  • Leaving out the quotes around the URI.
  • Using URI records to redirect a website. Browsers don't read them.

At your DNS host

  • Cloudflare and Google Cloud DNS support URI records.

Questions

Can a URI record redirect my website?

No. Browsers don't look up URI records. Use an HTTP redirect.

This page is also available as Markdown.

Lemon Domains keeps every domain you own in one place, with expiry reminders, change monitoring and DNS editing from your AI assistant. Get started free