Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

I am attempting in effect to add Server=/ to the configuration of dnsmasq in order to route queries for to a specific nameserver. To implement this I did the following.

  • I comment out the line dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf and restarted network-manager
  • I apt-get install dnsmasq
  • I edit /etc/dnsmasq.conf to my needs and restart dnsmasq

From my terminal, tests like host work correctly. But all applications (e.g. Firefox, midori, remmina) seem to use the "old" settings (that is I see DNS queries go out and fail with tcpdump). I am lost how to merge automagic and manual settings like this.

EDIT: Meanwhile I have even tried unusual and desparate measures (e.g., rebooting) without success. Also it seems that the distinction is not reminal vs. other apps. Rather even in a single terminal session I observe

#host has address
ping: unknown host

Ultimately,this led me to the solution. And admittedly this is an example where exaggerated anonymization made the question unanswerable: My domain in question is actually a subdomain of .local, which mdns steals away from proper dns. Editing /etc/nsswitch.conf solved the problem.

share|improve this question
Why can't I answer my own question? – Hagen von Eitzen Oct 28 '12 at 10:21

Edit /etc/nsswitch.conf so that the hosts line is

hosts: files dns mdns4
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.