Pointing A record to to multiple droplets in different country/location, is this possible?

May 4, 2019 135 views
DigitalOcean

I have a static Wordpress website and hosted on a UK IP droplet.

My A record is configured to respond to TTL 3600 to my UK IP.

I am wondering if anyone tried to link multiple A records to different droplets in different countries?

Example:

Type: A, Hostname: mydomain.com, Value: MY UK IP, TTL: 3600
Type: A, Hostname: mydomain.com, Value: MY USA IP, TTL: 3600
Type: A, Hostname: mydomain.com, Value: MY SINGAPOREAN IP, TTL: 3600

So if I get a visitor from the USA, the website will load faster since the USA IP would respond faster, am I correct to imagine this scenario?

Has anyone else tried anything like this before? Does it work? If yes, what was your setup?

1 Answer

For this case you can use a Load Balancer. You set the A-Record to that and the load balancer distributes the load.

Have another answer? Share your knowledge.