I'm wondering if it is possible just using DNS records to "load balance" traffic coming to my nameservers.
I thought about having multiple A records per nameserver, like this:
IN NS ns1.example.com IN NS ns2.example.com ns1 IN A 10.0.0.1 ns1 IN A 10.0.0.2 ns2 IN A 10.0.0.1 ns2 IN A 10.0.0.2
The idea is that the requests will be routed evenly to the two servers, even if the resolver always chose ns1, or if an intermediary dns cache is causing trouble.
I have used something like this for my MXs and it works, but I'm not sure if it works for the NSs records too. I don't really see a reason why it wouldn't, but I'd like your opinion.
To be clear, I'm not looking for a perfect load balancing solution here, and I'm aware that a client will have to retry on the second NS if the first is down.
I simply would like to have an equal bandwidth repartition on each server, not because one is overloaded, but because I have a traffic cap on each of those servers, so I would like to avoid having 90% of the requests go to ns1 and the rest to ns2.