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

It appears as if, in Ubuntu 10.10, NetworkManger uses dnsmasq to implement the "Shared to other computers" method. This is work fairly well for me, but I want the machines that connect to get specific IPs and names. I would have thought this would be as simple as creating the /etc/dnsmasq.conf file with a bunch of dhcp-host lines in it, but NetworkManager seems to be using a custom configuration (/tmp/randomfilename.conf) instead of the one in /etc. Is there some way to edit the config file NetworkManger uses, or is there some way in the GUI to do what I want?

share|improve this question
up vote 2 down vote accepted

There is no way unfortunately. The settings are currently hard-coded in NetworkManager; since they need to match at multiple different levels (the dnsmasq configuration needs to match with the generated iptables rules for connection sharing to work, since it relies on NAT and IP forwarding).

Note that the file generated in /tmp/ has never contained any data, and won't; it's an empty file that used to be passed to avoid using other configuration files for dnsmasq, since they'd interfere with setting up connection sharing.

share|improve this answer
I'll take note of the issue though, we may want to look at providing a way to set the IP range and such. – Mathieu Trudel-Lapierre Apr 20 '11 at 20:21

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.