Super User is a question and answer site for computer enthusiasts and power users. 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

My problem is the following: I have 2 Domain name systems, the standard one, that reflects the internet and a local one that maps names in a local network.

Now I would like to be able to use both of the systems, which the local domain server enables but I do only want to use the local server for lookup of local names.

I have a gateway computer (running Gentoo) that should handle this. My first thought is to somehow tell the local DNS server on the gateway computer to use the local DNS server for local adresses (for example ending with .local) and if it is not a local address then use the normal public DNS server for example Google's.

Unfortunately I have no idea how to tell this to my DNS server on the gateway (currently only dnsmasq is running there, maybe it would work when using bind?)

Already read this: How can I set up Linux to use a different DNS server for a certain domain? but it does not answer my question.

share|improve this question
up vote 0 down vote accepted

I found the solution to this problem using dnsmasq's server configuration. In /etc/dnsmasq.conf I just added the line:


To get all DNS requests to local.domain answered by the server

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .