Dns is not always a great solution if there are multiple A records. We wrote about a method for doing this with iptables and consul here.
https://tech.iheart.com/load-balancing-services-using-consul...
https://tech.iheart.com/load-balancing-services-using-consul...