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?


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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.