Question

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

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?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello there,

The DNS A record can hold only one record, so as already suggested you can use a load-balancer for that purpose.

Load balancers distribute traffic to groups of Droplets (which have different IP addresses as per your needs), which decouples the overall health of a backend service from the health of a single server to ensure that your services stay online.

https://docs.digitalocean.com/products/networking/load-balancers/how-to/create/

Regards, Alex

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