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 type | URI |
|---|---|
| Type number | 256 |
| Used for | Services |
| How common | Rare |
| Defined in | RFC 7553 |
Format
_<service>._<protocol>.<name> <ttl> IN URI <priority> <weight> "<uri>"
| Field | What it means | Accepted values |
|---|---|---|
| Priority | Lower is tried first. | 0 to 65535. |
| Weight | Share among equal priorities. | 0 to 65535. |
| Target | The 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.
| Part | What it means |
|---|---|
| Name_ftp._tcp | A service name. Underscore names hold records for a protocol (such as _dmarc or _sip._tcp), not a website. |
| TTL3600 | Resolvers may keep this answer for 1 hour before asking again. Changes can take that long to reach everyone. |
| ClassIN | Internet. Every record you'll write uses IN. |
| TypeURI | A URI for a service. |
| Priority10 | Lower is tried first. |
| Weight1 | Share of traffic among targets with the same priority. |
| Targetftp://files.example.com/public | The 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
3600. How TTL works
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