Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 to setup any dns (prefer nsd3) to give ip for google and for all others?

share|improve this question
all google domains, or just – Alnitak Nov 22 '09 at 19:33

I don't know about NSD, but with BIND9's view clause you could create a view matching only Google's IP addresses.

DNS for Rocket Scientists contain a section covering them: DNS BIND view Clause.

share|improve this answer

I don't believe you're looking for the answer to depend on the source IP address, which is what's normally known as a "view", or "split DNS".

If I understand you correctly, you want to serve the answer '' if the question is Google, and '' if the question is anything else.

For a BIND answer, see this question setting the wildcard to your '' and just add specific records to override the wildcard for those domains that you want to resolve to ''.

Alternatively, my evldns software could easily do this.

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.