The short version
- A new record type, GEO, gives a name such as
app.example.coma different answer in each of 8 regions: US East, US West, South America, Europe, Africa, Middle East, Asia and Oceania. - Visitors are sent to the address you chose for their part of the world, with no load balancer or extra service to run.
- Available now on Premium (25 GEO records) and Premium Pro (100), in the control panel and the API.
How it works
When you add a GEO record, we publish it in your zone as an ordinary CNAME that points to a name we assign on our traffic-routing domain, trafficrouting.net:
app.example.com. CNAME k3v9q2m7xa.trafficrouting.net.
k3v9q2m7xa.trafficrouting.net. 300 A <the address for the visitor's region>
That target name is answered by our global anycast network. Each resolver’s query is routed to our nearest server, and that server answers with the address you set for its region. Your own zone stays a normal zone, so nothing else about it changes.
- No GeoIP lookups. The network routing itself picks the region. Answers follow the location of the visitor’s DNS resolver, which for most people is close to where they are.
- Region failover. If our servers in a region become unavailable, its queries move to the next nearest region within about 30 seconds and get that region’s answer.
- A short TTL. The regional answers have a 300-second default TTL, so an address you change reaches visitors within minutes. TTL can be configured as low as 30-seconds.
- Private, permanent target names. Each GEO record gets a random target name of its own. It never contains your host name and is never reused, even after the record is deleted.
Setting it up in the control panel
Choose GEO in the zone’s record form. You’ll see the target name we’ve assigned before you save, and a row for each of the 8 regions, where you enter an IPv4 address, an IPv6 address, or both. Every region needs an answer, and two shortcuts make that quick:
- Copy US East to every empty region: start from a single address and refine it region by region later.
- Fill empty regions from nearest server: enter addresses for the regions where you have servers, and every other region gets the addresses of its nearest region that you filled in. For example, Asia falls back to the Middle East and then Europe, and Oceania to Asia and then US West.
Say you have one server in the US and one in Europe. Enter those two regions and press “Fill empty regions from nearest server”. The Americas and Oceania are served from the US, and Africa, the Middle East and Asia from Europe. GEO records show in the zone’s record list like any other record, and Edit opens the same region form.
Automating it with the API
GEO records are fully supported in the API:
- Add a record with every region, or send only the regions you have and
"fill": "nearest"to fill the rest, as the panel’s button does. - Changes merge. Send only the regions, or only the address family, you want to change, and everything else is kept. That makes moving traffic away from one data center a single small request.
- Records are listed with their type, target and per-region answers, and you can look one up by name.
Good to know
- Host names, not the apex. A CNAME can’t sit at the root of a zone, so GEO records go on names like
wwworapp. To serve the root of your domain, redirect it towwwand put the GEO record there. - You stay in control of failover between your servers. We currently don’t health-check them. If one goes down, change that region’s answer in the panel or the API. We are working on adding health probe and failover logic in future releases. Stay tuned.
- Plan limits. Premium includes 25 GEO records and Premium Pro 100. Each GEO record also counts as one record toward your plan’s record limit.
Get started
GeoDNS is included in the Premium and Premium Pro plans. Open a zone, add a record, and choose GEO.