DNS Location Data (DNS LOC)

Topics · Published 2019-10-09 · Revised 2026-11-23
Reviewed corrections applied locally; pre-review version preserved separately · Joomla source

9,901 Total views across this article’s versions; includes the historical baseline where available.

DNS is a hierarchical, distributed database of information associated with domain names. Address lookups are an important use, but DNS also carries mail-routing, service and other records. It does not itself forward the IP packets sent to the addresses it returns. DNS concepts.

Delegation lets an organization administer a zone itself or through a DNS hosting provider. The authority follows the namespace; it need not be physically near the users, hosts or servers named in the zone.

DNS Server Types

Two important roles are recursive resolution and authoritative service. A software package can support both, but they describe different responsibilities. “Authoritative” does not mean a server accepts queries only from other DNS servers. Access restrictions are an operator’s policy. DNS terminology.

Recursive DNS Servers

A recursive resolver answers a client’s question using cached information, queries to other servers, or an upstream resolver. When following delegations itself, it can start with cached referrals instead of consulting the root for every lookup. It does not synchronize a complete worldwide domain-name database. DNS concepts.

Authoritative DNS Servers

An authoritative server answers from the zones it serves. A delegated child zone can be served elsewhere, so a parent is not necessarily a complete directory of every name below it. DNS terminology.

An uncached address lookup may proceed as follows:

  1. A client asks its recursive resolver for an address.
  2. The resolver queries a root server and receives a referral toward the relevant top-level domain.
  3. The resolver queries a TLD server and receives a referral toward the authoritative zone.
  4. The resolver queries that authoritative server, follows any further delegations or aliases, and obtains an answer.
  5. The resolver caches eligible data and returns the result to the client.

The resolver sends the successive queries. Root and TLD servers do not pass the client’s original request along a chain on its behalf. RFC 1034.

Preserved original lookup diagram. Its root-to-TLD-to-authoritative arrows incorrectly imply that forwarding chain; use the sequence above.

An unsuccessful lookup is not always “not found.” NXDOMAIN indicates a nonexistent name; a successful response can contain no records of the requested type, and SERVFAIL indicates a resolution failure. Negative answers have their own caching rules. RFC 2308.

The DNS LOC Record

RFC 1876, published in January 1996 as an Experimental RFC, defines the LOC resource-record type, numeric code 29. It publishes location information associated with a DNS name, including latitude, longitude, altitude, size and precision, using a WGS 84 reference. A record can describe a host, network or subnet.

A LOC record is not a mandatory field in ordinary address queries. It does not automatically describe the person making a query, and the RFC does not specify that ISP routers insert it into passing customer traffic.

Old Standard, New Practical Uses

Three mechanisms are easily confused:

  • LOC records: coordinates published for a DNS name, when its zone operator supplies them.
  • EDNS Client Subnet (ECS): an optional DNS extension carrying an IP-address prefix so an authoritative service can tailor a response. It is not a latitude/longitude record, and not every resolver sends it. RFC 7871.
  • IP geolocation: an estimate derived from an observed IP address and a provider’s data. Coordinates can represent a broad area rather than a household. MaxMind's data explanation.

A DNS service may choose answers using a resolver’s source address or ECS. That is separate from a website observing the source address of the later application connection. The old account of routine ISP LOC injection did not establish either mechanism.

DNS LOC and Privacy Concerns

Publishing precise LOC information can reveal a sensitive location; RFC 1876 explicitly recognizes that risk. DNSSEC can authenticate signed DNS data, but does not encrypt it or prove that published coordinates are physically correct. LOC security considerations and DNSSEC overview.

For DNS users, query contents, resolver visibility and ECS disclosure are different privacy questions. DNS over TLS or HTTPS protects the connection to the chosen resolver, which still processes the queries. A VPN changes which network path carries them only when the DNS traffic actually uses that tunnel. DNS privacy considerations, DoT and DoH.

Neither a LOC record nor an IP-geolocation estimate establishes a person’s exact whereabouts. Treat a claim about automatic tracking through LOC as requiring evidence of the actual records and system involved.

The two references below were part of the original article’s discussion of consumer attitudes toward location data. They are retained as historical context, not evidence that ISPs inject LOC records or that a particular geofencing system uses them.

1Privacy and Location Data Global Consumer Study. March 2018. HERE Technologies.

2Guttman, A. 14 January 2019. Marketing personalization - Statistics & Facts. Statista. The live topic page can change; it is not a preserved copy of the cited 2019 edition.