NodeRings Logo

Location-based DNS

What is GeoDNS?

People searching for GeoDNS, geo DNS, or location-based DNS are asking the same thing: how do I send each visitor to the origin I meant, without a different hostname per region? This page explains the idea, how NodeRings chooses an answer, and how to turn it on.

Updated 5 min read

The idea

Location-based DNS, not a second hostname per region

GeoDNS, also called geolocation DNS or a traffic director, is authoritative DNS that returns a different answer based on where the visitor is. One hostname, such as api.example.com, can send California to one origin, Tokyo to another, and everyone else to a default.

It is not a second product on NodeRings. You configure the map on a hosted zone; we serve the answers. Classic records stay in the same zone. The DNS product page covers nameservers, import, and DNSSEC in more depth.

How it works

Three decisions between the click and the origin

The lookup reaches NodeRings over anycast. The answer your visitor receives is the origin you attached to that location.

  1. The query hits anycast

    The resolver reaches ans1.nrings.io or ans2.nrings.io, whichever nameserver is closest to that lookup. Fast DNS is the floor, not the product.

  2. We locate the visitor

    When the resolver sends EDNS Client Subnet, we use the visitor prefix. Otherwise we use the resolver's own address. You never write Lua.

  3. They get the origin you set

    The most specific geo match wins: region or region group, then country, then continent, then the required default. Same hostname, different answer.

On NodeRings

What you can configure today

GeoDNS is available in the DNS console, the public API, Terraform, and MCP. At the registrar, set only ans1.nrings.io and ans2.nrings.io. Confirm answers on the map before you cut the nameservers over.

  • Targets as tight as your footprint

    United States and Canadian regions and region groups, whole countries, and continents. Mix them on one record: California can beat United States, the Netherlands can beat Europe.

  • The record types GeoDNS supports

    A, AAAA, CNAME, NAPTR, and SRV, each with a required default. TTL must be 30 to 60 seconds so a resolver does not keep one region's answer for too long.

  • Check the map before you cut over

    In the DNS console, select a geo record and click a country or region. The result shows the answer that location would receive and which rule matched.

  • API, Terraform, and MCP

    The same policy is in the public API and in noderings_dns_geo_record. The MCP server can list locations, list or check geo records, and create or delete them.

  • DNSSEC still geo-routes

    Sign the zone with algorithm 13 (ECDSA P-256) and NSEC3 after nameservers already point at NodeRings. Location-based answers keep working on a signed zone.

  • Included with hosted DNS

    There is no separate GeoDNS add-on and no per-query charge on this page. Add a zone, attach geo answers, and point the registrar at our nameservers.

Read the GeoDNS guide

GeoDNS vs anycast

Two different jobs, often confused

People often treat GeoDNS and anycast as interchangeable. They are not. Anycast is how a packet finds a nearby listener for one address. GeoDNS is how a hostname becomes a different address for different visitors.

GeoDNS compared with anycast for your own application servers
Where the decision happensAt the DNS layer: the nameserver returns the origin you set for that visitor.In the network: the same address is announced from more than one site, and routing picks a location.
What you needA hosted zone and more than one origin. You pick places from a dropdown; you do not write Lua.An ASN, BGP, and the same address at each site. That is a routing setup, not a DNS record.
Best whenYou already run machines in a few regions and want one public hostname.You need the same IP everywhere and can operate routing yourself.
On NodeRingsIncluded with hosted DNS for A, AAAA, CNAME, NAPTR, and SRV records.Anycast is how resolvers reach ans1.nrings.io and ans2.nrings.io. It does not anycast your application IP.

For a worked example with two VMs, read GeoDNS vs Anycast for a small site.

FAQ

Frequently asked questions about GeoDNS

What is GeoDNS?

GeoDNS is a traffic director at the DNS layer: authoritative DNS that returns a different answer based on where the visitor is. The same hostname can send California to one origin, the Netherlands to another, and everyone else to a default. NodeRings matches the most specific rule first: region or region group, then country, then continent, then default.

Is geo DNS the same as GeoDNS?

Yes. Geo DNS, GeoDNS, geolocation DNS, and geographic DNS are names for the same idea: the nameserver looks at where the query comes from and returns the address you set for that place.

How does location-based DNS routing work?

A resolver queries our anycast nameservers. If it sends EDNS Client Subnet, we use the visitor prefix; otherwise we use the resolver's address. We then return the most specific match you configured: a region or region group, then a country, then a continent, then the required default.

Is GeoDNS the same as latency-based routing?

No. NodeRings GeoDNS is location-based: it matches continent, country, or region, not a live latency probe. Sending a visitor to a nearby origin usually lowers round-trip time, but the match is the location rule you set, not a measured millisecond value.

How is GeoDNS different from anycast?

Anycast is how resolvers reach our nameservers: a nearby NodeRings NS answers the lookup. GeoDNS is which origin IP we return for your hostname. They work together: anycast shortens the DNS hop; GeoDNS chooses the application server you configured for that visitor.

Is GeoDNS free on NodeRings?

Yes. Hosted DNS and GeoDNS are included with your NodeRings account at no extra cost. There is no separate GeoDNS add-on and no per-query charge on this page.

What locations can I target?

United States and Canadian regions (and region groups), whole countries, and continents. Every geo record still needs a default for visitors who do not match a more specific rule.

Which record types support GeoDNS?

A, AAAA, CNAME, NAPTR, and SRV. TTL must be 30 to 60 seconds. Ordinary records such as MX, TXT, and CAA stay in the same zone on the Records tab.

Does GeoDNS work with DNSSEC?

Yes. Sign the zone with algorithm 13 (ECDSA P-256) and NSEC3 after nameservers already point at NodeRings, then publish the DS record at your registrar. Location-based answers keep working on a signed zone.

How do I start using GeoDNS?

Create a zone in the DNS console, add a geo record with a required default plus optional continent, country, or region answers, then point the registrar at only ans1.nrings.io and ans2.nrings.io. Check answers on the map in the console before you cut traffic over.