On Mon, Mar 31, 2008 at 08:01:20PM +0100, Simon Kelley wrote: > Bas Wijnen wrote: >> >> When installing dnsmasq and resolvconf, the nameserver is set to >> 127.0.0.1, and dnsmasq tries to use that. This obviously doesn't work. >> >> /etc/dnsmasq.conf should therefore by default set >> resolv-file=/var/run/dnsmasq/resolv.conf >> if resolvconf is installed, or the binary should use it as default >> instead of /etc/resolv.conf. > > Are you sure there's a problem? dnsmasq should notice that it's > listening on 127.0.0.1 and not use it as an upstream nameserver, using > other nameservers further down the list.
Ok, that's nice, but there aren't any other nameservers in the generated /etc/resolv.conf. On an update, /etc/resolvconf/update.d/dnsmasq generates /var/run/dnsmasq/resolv.conf. It contains what would be in /etc/resolv.conf if dnsmasq would not have been installed. /etc/resolv.conf itself is changed so it contains only 127.0.0.1, and so it cannot be used by dnsmasq to find other nameservers. > So the 127.0.0.1 is intended - it's the way resolvconf works. If not, > then this is probably a resolvconf problem. Well, /etc/resolvconf/update.d/dnsmasq is shipped by dnsmasq, and it creates /var/run/dnsmasq/resolv.conf, which contains exactly what dnsmasq needs. So to me it seems that this was done so that it can be used as the resolv.conf file for dnsmasq (it also works fine when I use it as such). If not, then I don't see the point of shipping that script, as the file isn't used for anything else either AFAICS. Anyway, as I wrote there are many solutions. If you prefer adding the nameservers to /etc/resolv.conf somehow, and that works, it's fine with me. :-) Thanks, Bas -- I encourage people to send encrypted e-mail (see http://www.gnupg.org). If you have problems reading my e-mail, use a better reader. Please send the central message of e-mails as plain text in the message body, not as HTML and definitely not as MS Word. Please do not use the MS Word format for attachments either. For more information, see http://pcbcn10.phys.rug.nl/e-mail.html
signature.asc
Description: Digital signature