You are not logged in.
Greetings community.
I ran pacman -Syu today, and dnsmasq was updated amongst other
packages. I've noticed my DNS requests are taking much longer than
usual since I rebooted my machine. I manually tried to restart the
dnsmasq daemon, but it fails. Is anyone else experiencing this?
Last edited by ultra_violence (2010-06-10 12:28:29)
We are Pentium Borg. Division is futile, you will be approximated.
Offline
Follow up:
Killing the process and restarting the daemon manually
seems to work. Not quite sure why this is necessary, however.
I'm just using dnsmasq as a DNS cache on my local machine,
not a DHCP server. Anyone have any insights?
I apologise in advance for bumping.
We are Pentium Borg. Division is futile, you will be approximated.
Offline
post /var/log/everything.log (dnsmasq relevant entries only)
Offline
I tried restarting the daemon aswell, and it also failed.
I checked the processes and I had an instance of dnsmasq running, so I killed it and started the daemon again. It works.
Offline
post /var/log/everything.log (dnsmasq relevant entries only)
Jun 7 15:13:23 darkstar dnsmasq[3729]: started, version 2.54 cachesize 150
Jun 7 15:13:23 darkstar dnsmasq[3729]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun 7 15:13:23 darkstar dnsmasq[3729]: reading /etc/resolv.conf
Jun 7 15:13:23 darkstar dnsmasq[3729]: using nameserver 208.67.220.220#53
Jun 7 15:13:23 darkstar dnsmasq[3729]: using nameserver 208.67.222.222#53
Jun 7 15:13:23 darkstar dnsmasq[3729]: ignoring nameserver 127.0.0.1 - local interface
Jun 7 15:13:23 darkstar dnsmasq[3729]: read /etc/hosts - 2 addresses
I appreciate any advice or insights you might have. I'm stumped.
We are Pentium Borg. Division is futile, you will be approximated.
Offline
I think I've pinpointed the cause of the problem, but I'm not sure how to fix it.
After poking around in the logs a little more, I've discovered that dnsmasq
does not seem to be parsing name servers in /etc/resolv.conf when the
daemon is started at boot time:
Jun 7 15:11:21 darkstar dnsmasq[3567]: started, version 2.54 cachesize 150
Jun 7 15:11:21 darkstar dnsmasq[3567]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jun 7 15:11:21 darkstar dnsmasq[3567]: reading /etc/resolv.conf
Jun 7 15:11:21 darkstar dnsmasq[3567]: ignoring nameserver 127.0.0.1 - local interface
Jun 7 15:11:21 darkstar dnsmasq[3567]: read /etc/hosts - 2 addresses
Jun 7 15:11:26 darkstar dnsmasq[3567]: reading /etc/resolv.conf
Jun 7 15:11:26 darkstar dnsmasq[3567]: reading /etc/resolv.conf
Jun 7 15:11:26 darkstar dnsmasq[3567]: ignoring nameserver 127.0.0.1 - local interface
Comparing this with my previous post, you can see that the name servers are
parsed when the process is killed and the daemon restarted manually but not
when the daemon is started at boot. Is this a dnsmasq issue? Worthy of a bug
report?
We are Pentium Borg. Division is futile, you will be approximated.
Offline
you can try to start dnsmasq a little late by adding it to the end of the rc.conf daemons array (and adding a sleep parameter to it), see if it helps anything. Also, remove the 127.0.0.1 nameserver, see if it changes anything.
Offline
Remove 127.0.0.1? What would be the point of using dnsmasq then?
No application could use it then, or am I mistaken here?
Offline
It used to work for me between hibernations, but now every time I resume I have to stop the daemon, kill the process and start the daemon again. :s
Offline
you can try to start dnsmasq a little late by adding it to the end of the rc.conf daemons array (and adding a sleep parameter to it), see if it helps anything. Also, remove the 127.0.0.1 nameserver, see if it changes anything.
In order for dnsmasq to function as a local DNS cache, the
nameserver 127.0.0.1 is required in resolv.conf. See the
Arch wiki for further information:
http://wiki.archlinux.org/index.php/Dnsmasq
There's a bug here somewhere. It worked without a hitch
before upgrading my system.
We are Pentium Borg. Division is futile, you will be approximated.
Offline
This happened to me too, It would work fine after really killing the dnsmasq daemon and starting it again but if I changed from access point to access point it would stop working again and dnsmasq would fail to restart.
My solution to that was to uncomment the line that says "bind-interfaces". Make sure you have a line with the interfaces you want dnsmasq to listen on. I assume you just want it to help speedup dns queries made by your machine so you should have a line with "listen-address=127.0.0.1".
It should work just fine if you do this, you may want to tweak the configs a little bit, here's what I have (without the examples):
domain-needed
bogus-priv
listen-address=127.0.0.1
bind-interfaces
addn-hosts=/etc/blocked_pages
cache-size=2000
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline
Excellent, that's fixed it for me.
Thank you for the help, R00KIE.
We are Pentium Borg. Division is futile, you will be approximated.
Offline
Yes, it works. Thanks a lot.
Offline