LOC record
Encyclopedia : L : LO : LOC : LOC record
The LOC record ([RFC1876]) is a means for expressing location information in the Domain Name System. It contains WGS84 Latitude, Longitude and Altitude 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: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
- yahoo.com in wiki coordinates:
- LOC record [link]
yahoo.com. IN LOC 37 23 30.900 N 121 59 19.000 W 7.00m 100.00m 100.00m 2.00m
Altitude for
The altitude range provides the following:
- DNS altitude range [-100000.00 .. 42849672.95]. This range can be easily stored in 4 bytes.
- Maximum altitude is 42,849.67295 km. Which is large enough to store the altitude of a circular geosynchronous orbit (i.e. approximately 35,790 km above mean sea level).
- Maximum depth of 100 km below earth surface.
See also
References
- [DNS-LOC calculator for djbdns's tinydns]
- [WikiProject Geographical coordinates] The wikipedia location resource.
- [Sites supporting DNS LOC]
- [RFC1876] How latitude and longitude are stored in a DNS record.
- [RFC2426] Chapter 3.4.2: Text/directory MIME type GEO
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
