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
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.

TTL
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.

Record Class
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.
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
Latitude of the geographical position.

Longitude
Longitude of the geographical position.

Altitude
Altitude of the geographical position.

Size
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

BIND
Berkeley Internet Name Daemon - is the most commonly used DNS software on the Internet and Dynu observes BIND format.
Loading...