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:
@ 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:
|106 28 29.000 W
It defines the hostname of a record and whether the hostname will be appended to the label. Fully qualified hostnames terminated by a period will not append the origin.
The time-to-live in seconds. It specifies how long a resolver is supposed to cache or remember the DNS query before the query expires and a new one needs to be done.
Mainly 3 classes of DNS records exist:
- IN (Internet) – default and generally what internet uses.
- CH (Chaosnet) – used for querying DNS server versions.
- HS (Hesiod) – uses DNS functionality to provide access to databases of information that change infrequently.
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 of the data in centimeters.
Vertical precision of the data in centimeters.
LOC record glossaryBIND
Berkeley Internet Name Daemon - is the most commonly used DNS software on the Internet and Dynu observes BIND format.