Sunday, February 7, 2016

bind - Location aware DNS with Bind9



I'm currently running a front-end caching server powered by Varnish. It serves up a few websites. I'm using Bind to serve DNS requests. The first server is located in the Netherlands, where as a new server I just acquired is located in the US. Is it possible to have Bind serve up DNS records for the "closest server"? And is it possible to still have it serve up the IP of the other server as a secondary IP in case the target server crashes?


Answer




there's a patch for bind to provide geoip-aware 'split view'. this addresses the first part of your question. unfortunately the http client does not have built in failover capability so the 'serve up the IP of the other server as a secondary IP in case the target server crashes' part will not work. sure you can respond to the A request with 2 ips but then client will round-robin between them. so you should look for another failover [dns with short ttl?].



take a look here or here for examples of using the geoip in bind to provide different answers depending on the geolocation of the ip sending the dns query.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...