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

The way dnsmasq works with 12.10 has changed again, from 12.04. I have searched the Ubuntu documentation and Google for further info , without success.

Basically in 12.04 you could see the list of upstream DNS servers passed to dnsmasq in the file /var/run/nm-dns-dnsmasq.conf. This file in 12.10 is empty, and with all the reading I have done, it appears to be being managed by dbus. I just need to know where this information is being stored, as it is causing us an issue with VirtualBox, not correctly passing through the DHCP information.

I know I could switch this service off , with the switch for the network manager service, but I would rather understand how the new system functions, and correct the issue there.

Any pointers to how this works gratefully received.

share|improve this question
I now have the answer to this, thanks to Stephane Graber: In 12.10 dnsmasq and NetworkManager were changed to use dbus to communicate instead of having to respawn dnsmasq for every change. The result of that is that all the configuration is now passed over dbus and there's no more configuration file used to provision dnsmasq. You can query the current configuration with "nm-tool" or by looking at your syslog where any dnsmasq configuration change is logged. – Nick Dec 6 '12 at 15:52
It's ok to put an answer to your own question and mark that answer as the solution, and we don't usually put solved in the title of the question here. – user76204 Dec 6 '12 at 16:01

NetworkManager talks with dnsmasq over dbus now. This has one advantage: dnsmasq does not have to be restartet everytime something changes.

The big downside: You can't really see what's going on anymore. /var/log/syslog now has entries that describe what goes on a bit:

Jan 21 22:10:13 bogo dnsmasq[28993]: vorgelagerte Server von DBus gesetzt
Jan 21 22:10:13 bogo dnsmasq[28993]: Benutze Namensserver

But that's - in my eyes - not really a satisfying solution, especially when something goes wrong.

share|improve this answer

There is mention of one of the changes in the Networking stanza of the Quantal release notes.

The information that was formerly in /var/run/nm-dns-dnsmasq.conf is no longer in a file, but you can extract information using nmcli or nm-tool as has been described in other answers such as

How to know what DNS am I using in Ubuntu 12.04

share|improve this answer
It only says that is used now, not that dnsmasq.conf is empty. – cweiske Jan 21 '14 at 20:55

You probably hit this site but it might be what your looking for.

share|improve this answer
It is a general rule on AU to -not- use a link dump as an answer. Please copy the text over to the answer and use the link as the source :) That way you will get far more reputation for the answer. – Rinzwind Dec 5 '12 at 15:05
Yes, I have seen that site thanks, but it explains 12.04, 12.10 is not populating /var/run/nm-dns-dnsmasq.conf anymore. – Nick Dec 5 '12 at 15:32

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.