On Sat, Jan 31, 2015 at 03:44:26AM +0000, T o n g wrote: > On Thu, 01 Jan 2015 19:16:20 +0000, T o n g wrote: > > > I following the following to config dnsmasq as DHCP and DNS server > > http://sfxpt.wordpress.com/2013/11/30/dnsmasq-installation- > > configuration-5/ > > > > It works well till Ubuntu 13.10. However, with Ubuntu 14.10, the dns > > query from localnetwork will always timeout. The configurations are > > exactly the same, What could be the problem? > > Just for the archive, I've found the problem. I believe it is cause by > the new way Ubuntu 14.10 packaging dnsmasq. I've submit a bug report of > detailed description and explanation of the problem at > > https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1414887/comments/2 > > Basically, the key issue is that Ubuntu 14.10 now starts dnsmasq in a > very restricted way. Here is what I found out how dnsmasq is started in > Ubuntu 14.10: > > /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind- > interfaces --pid-file=/run/sendsigs.omit.d/network-manager.dnsmasq.pid -- > listen-address=127.0.1.1 --conf-file=/var/run/NetworkManager/dnsmasq.conf > --cache-size=0 --proxy-dnssec --enable- > dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/ > NetworkManager/dnsmasq.d > > I.e., that `--listen-address=127.0.1.1` will willfully ignore any dns > queries from local network. This is the exact reason causing the symptom > that I reported above. More details at > https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1414887/comments/2 > > Thank you again Samuel for helping me identify the problem. > It's the same way in 14.04, I had all sorts of issues with that upgrade.
It's very difficult to untangle the default Ubuntu way of using dnsmasq where it's run by NetworkManager as a purely local (to the machine where it's running) cached DNS server. If you want to run a 'proper' DNS then it's a real pain. I am now running my main dnsmasq installation on a Raspberry Pi and it's *way* easier to configure than it was on my desktop Xubuntu machine. -- Chris Green _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss