DNS records

LOC record

A LOC (location) record publishes latitude, longitude and altitude for a name, such as where a server or office is. It's an old, little-used record; nothing on the web depends on it.

Record typeLOC
Type number29
Used forInformation
How commonRare
Defined inRFC 1876

Format

<name> <ttl> IN LOC <lat d m s> N|S <lon d m s> E|W <altitude>m [size]m [horiz precision]m [vert precision]m
FieldWhat it meansAccepted values
LatitudeDegrees, minutes, seconds, then N or S.0 to 90 degrees.
LongitudeDegrees, minutes, seconds, then E or W.0 to 180 degrees.
AltitudeMetres above sea level.-100000 to 42849672m.
Size and precisionSize of the area, and horizontal and vertical precision.Metres; default 1m, 10000m, 10m.

Check an LOC 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 LOC record.

PartWhat it means
NameofficeA name under the domain. In a dashboard for example.com, “office” means office.example.com.
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.
TypeLOCGeographical location.
Latitude51 30 26.000 N51° 30′ 26.000″ N
Longitude0 7 39.000 W0° 7′ 39.000″ W
Altitude20mHeight above sea level (WGS 84).
Size10mDiameter of the area described. Defaults to 1m.
Horizontal precision100mHow precise the position is across. Defaults to 10000m.
Vertical precision10mHow precise the altitude is. Defaults to 10m.

Examples

An office in London

office 3600 IN LOC 51 30 26.000 N 0 7 39.000 W 20m 10m 100m 10m

Latitude 51°30′26″N, longitude 0°07′39″W, 20 metres up.

See it on a real domain

TTL

Any; locations rarely change. How TTL works

Common mistakes

  • Decimal degrees (51.507). LOC uses degrees, minutes and seconds.
  • Forgetting the m after altitude.

At your DNS host

  • Cloudflare and Google Cloud DNS support LOC.

Questions

Is the LOC record used for geolocation of visitors?

No. IP geolocation services don't read it. It only says where the owner claims a name is.

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