LOC Record  LOC Record

What is a LOC record?

LOC records allow you to specify a physical location for a domain name. It contains Latitude, Longitude and Altitude information as well as host/subnet physical size and location accuracy. This information can be queried by other computers connected to the Internet.

LOC record format

A typical LOC record looks like the following in standard BIND format:

$ORIGIN example.com.
@ 3600 IN  LOC 31.000 N 106 28 29.000 W 10.00m 1m 10000m 10m
An anatomy of the LOC Record looks like the below:
Host Label TTL Record Class Record Type Latitude Longitude Altitude Size Horizontal Precision Vertical Precision
example.com. 3600 IN LOC 31.000 N 106 28 29.000 W 10.00m 1m 10000m 10m
Host Label


Record Class
Mainly 3 classes of DNS records exist:
Record Type
The record format is defined using this field. Common record types are A, AAAA, CNAME, CAA, TXT etc. In the case of a LOC record, the record type is LOC.

Latitude of the geographical position.

Longitude of the geographical position.

Altitude of the geographical position.

Diameter of the described location in centimeters.

Horizontal Precision
Horizontal precision of the data in centimeters.

Vertical Precision
Vertical precision of the data in centimeters.

LOC record glossary
