LOC record explained

In the Domain Name System, a LOC record (experimental) is a means for expressing geographic location information for a domain name.

It contains WGS84 Latitude, Longitude and Altitude (ellipsoidal height) information together with host/subnet physical size and location accuracy. This information can be queried by other computers connected to the Internet.

Record format

The LOC record is expressed in a master file in the following format:

(owner) (TTL) (class) LOC (d1 [m1 [s1]] d2 [m2 [s2]] alt["m"] [siz["m"] [hp["m"] [vp["m"]]]])

(The parentheses are used for multi-line data as specified in RFC 1035, section 5.1.)

where:

    d1:     [0 .. 90]            (degrees latitude)
    d2:     [0 .. 180]           (degrees longitude)
    m1, m2: [0 .. 59]            (minutes latitude/longitude)
    s1, s2: [0 .. 59.999]        (seconds latitude/longitude)
    alt:    [-100000.00 .. 42849672.95] BY .01 (altitude in meters)
    siz, hp, vp: [0 .. 90000000.00] (size/precision in meters)

An example DNS LOC resource record

Altitude for Geosynchronous Earth Satellites

The altitude range provides the following:

UK Postcode to DNS LOC record using find.me.uk

You can look up the LOC record for any UK postcode, e.g.: $ dig loc SW1A2AA.find.me.uk

See also

References