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
Anatomy of the LOC Record looks like the below:
|Host Label||TTL||Record Type||Latitude||Longitude||Altitude|
|example.com.||3600||LOC||31.000 N||106 28 29.000 W||10.00m|
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 the 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.