RSS Amplifier

ryan.freumh.org · Jan 18, 2022

DNS LOC

0
Sign in to vote or save

ryan.freumh.org

Published 18 Jan. 2022. Last update 21 May. 2022.

The Domain Name System (DNS) has a little known ‘LOC’ resource record (RR) defined in 1996 for encoding location information purportedly for hosts, networks, and subnets[0].

It encodes:

  • Latitude
  • Longitude
  • Altitude
  • Size of the referenced sphere
  • Horizontal and vertical precision

A number of suggested uses are proposed in the RFC:

  • USENET - a distributed discussion system now eclipsed by the World Wide Web - geographic flow maps.
  • A ‘visual traceroute’ application showing geographical flow of IP packets, presumably relying on routers responding to both IP TTL timeouts and DNS LOC requests.
  • Network management using LOC RRs to map hosts and routers.

RFC-1876 also describes algorithms for resolving locations for domain names or IP addresses with decreasing accuracy. It still refers to classful addressing, despite being published 3 years after CIDR[1], probably because the algorithm it was adapted from was published in 1989.

An aside: find.me.uk can be used to get the location of any UK postcode, e.g. $ dig loc cb30fd.find.me.uk.

There are a few notable issues with the DNS LOC RR.

  • There’s no verification of LOCs. See $ dig loc freumh.org.
  • The privacy and security implications.

High-precision LOC RR information could be used to plan a penetration of physical security, leading to potential denial-of-machine attacks. To avoid any appearance of suggesting this method to potential attackers, we declined the opportunity to name this RR “ICBM”[0].

  • They have extremely limited real-world usage for practical purposes. Trying to implement a visual traceroute would just not be possible, as no routers or networks have LOC records.

CloudFlare handles millions of DNS records; of those just 743 are LOCs[2].

[0] - RFC-1876 A Means for Expressing Location Information in the Domain Name System
[1] - RFC-1518 An Architecture for IP Address Allocation with CIDR
[2] - The weird and wonderful world of DNS LOC records

Read the original on ryan.freumh.org

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.