HTTPfy

LOC record

A LOC record gives the physical location of a host or network as latitude, longitude and altitude, with size and precision values.

type code 29 RFC 1876

Live LOC records from real domains

Checked at via public DNS
ckdhr.comLOC
ckdhr.com. 21600 IN LOC 42 21 43.528 N 71 5 6.284 W -25.00m 1.00m 3000.00m 10.00m
  ; 42.3621° N, 71.0851° W, altitude -25 m
caida.orgLOC
caida.org. 14400 IN LOC 32 53 1.000 N 117 14 25.000 W 107.00m 30.00m 10.00m 10.00m
  ; 32.8836° N, 117.2403° W, altitude 107 m
cmu.eduLOC
cmu.edu. 21600 IN LOC 40 26 39.000 N 79 56 36.200 W 283.00m 1.00m 10.00m 10.00m
  ; 40.4442° N, 79.9434° W, altitude 283 m
alink.netLOC
alink.net. 300 IN LOC 37 22 26.000 N 122 1 47.000 W 30.00m 30.00m 30.00m 10.00m
  ; 37.3739° N, 122.0297° W, altitude 30 m

What the LOC record does

LOC records were an experimental way to support tools that map networks. A handful of universities and research networks published them in the 1990s and some still do. Modern IP geolocation services do not read them, so publishing LOC will not change where your visitors appear.

Sizes and precisions are stored in a compact mantissa/exponent form, which is why only values like 1m, 10m or 3000m round-trip exactly.

Zone-file syntax

example.com.  3600  IN  LOC  42 21 43.528 N 71 5 6.284 W -25.00m 1m 3000m 10m
; lat  lon  altitude  size  horiz-precision  vert-precision

Wire format: RDATA is 16 octets: version (0), size, horizontal and vertical precision (each 4-bit mantissa, 4-bit exponent, in centimetres), then latitude, longitude (thousandths of an arc-second, offset by 2^31) and altitude (centimetres above a base 100,000 m below the WGS 84 reference spheroid).

Fields

FieldMeaning
Latitude / LongitudeDegrees, minutes, seconds and hemisphere (N/S, E/W).
AltitudeMetres relative to the WGS 84 spheroid; can be negative.
SizeDiameter of a sphere enclosing the entity; default 1m.
Horizontal / vertical precisionAccuracy; defaults 10000m and 10m.

Common mistakes

  • Expecting LOC to affect geo-IP lookups or CDN routing.
  • Writing decimal degrees (42.36) instead of degrees/minutes/seconds.

Specification

  • RFC 1876: A Means for Expressing Location Information in the Domain Name System

Related record types

  • HINFO: host information, and RFC 8482 ANY answers
  • TXT: free-form text for verification and policy
  • A: map a hostname to an IPv4 address

All DNS record types