This is specifically for my domain, the users/visitors will not use my dns server at all. Is this even possible?
I need to setup a dns server that I can host my domain on, that when requested will choose an IP address for the user from criteria that I set on my server.
Ex: user from Canada requests A NAME record lookup on mydomain.com and it will return 10.0.0.20 and a user from the Netherlands performing the same lookup will return 10.0.0.21, ideally I would like to be able to take the requesting IP address (user) and run my own scripts/checks on it even down to accounting for the ASN of the requestee and giving a specific IP address. Is this possible with hosting my own DNS server?
I don't have much experience outside of using free or third party dns services.
This needs to be done at the DNS level and not through redirecting traffic using a reverse proxy.