# 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/"`. |

## 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.

## TTL

3600.

## 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.

## Related

- [SRV record](https://lemon.domains/dns-records/srv.md)
- [NAPTR record](https://lemon.domains/dns-records/naptr.md)
- [SVCB record](https://lemon.domains/dns-records/svcb.md)

Interactive version with a record checker and live lookup: https://lemon.domains/dns-records/uri
