Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can can I set up a DNS server that will have some conditions before resolving domains?

I mean, before serving the client the resolved address, the server will go through some conditions I'll set up before. For example: geographic location, server load (For example, will get the least loaded server by XML from a monitoring server) etc.

Any lead will help.

share|improve this question

Views in BIND for IP-differentiating (geoip-patch for geo-separation also exist)

Can say nothing about another DNSes

share|improve this answer

I think that PowerDNS supports custom back-ends, maybe it may help (never used it though), but I think you'll have to code your own back-end to use it.

In BIND9 you have views that can provide different answers depending on query source IP so it'll do for geo. (BTW, source IP is an IP of recursive DNS server, you never know IP of the end user, and they not necessary in the same region - see "Google Public DNS").

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.