Link to home
Start Free TrialLog in
Avatar of myyis
myyis

asked on

DNS and IP location problem

I have 2 sites: site.com and us.site.com
site.com (1.1.1.1) is hosted in Asia and us.site.com (2.2.2.2) is hosted in USA

The majority of  the visitors located in USA go to us.site.com
A few visitors located in USA  and using site.com are directed  to us.site.com with code using GeoIP location.
The problem is when the site.com fails those few users get an error.

I may use 2 A records for site.com (1.1.1.1 and 2.2.2.2) to overcome this problem but in this case lots of visitors (may be the majority) located in Asia will be redirected to 2.2.2.2 depending on the browser behaviour.

I can redirect the Asian visitors to 1.1.1.1 with code but this solution is very inefficient.

How can I solve this problem?
ASKER CERTIFIED SOLUTION
Avatar of Kimputer
Kimputer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of myyis
myyis

ASKER

This service https://cloud.google.com/dns/what-is-cloud-dns 
is cheap but I am not sure if it has a function for problem. I have read it but I have little knowledge about the subject.
Can you have a look?
Thank you
That's just the basic DNS functions, no real geo traffic redirection/ fail over / dynamic updates logic built in.