You are not logged in.

#1 2010-06-07 03:27:54

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

dnsmasq broken in update? [SOLVED]

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

#2 2010-06-07 03:51:17

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

Re: dnsmasq broken in update? [SOLVED]

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

#3 2010-06-07 06:22:15

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: dnsmasq broken in update? [SOLVED]

post /var/log/everything.log (dnsmasq relevant entries only)

Offline

#4 2010-06-07 09:37:39

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: dnsmasq broken in update? [SOLVED]

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

#5 2010-06-07 15:51:29

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

Re: dnsmasq broken in update? [SOLVED]

Sin.citadel wrote:

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

#6 2010-06-07 20:37:25

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

Re: dnsmasq broken in update? [SOLVED]

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

#7 2010-06-08 06:51:51

Sin.citadel
Member
Registered: 2008-01-22
Posts: 267

Re: dnsmasq broken in update? [SOLVED]

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

#8 2010-06-08 17:20:46

EdgarButan
Member
Registered: 2010-02-09
Posts: 42

Re: dnsmasq broken in update? [SOLVED]

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

#9 2010-06-08 22:32:55

tvale
Member
From: Portugal
Registered: 2008-12-11
Posts: 175

Re: dnsmasq broken in update? [SOLVED]

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

#10 2010-06-09 20:40:48

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

Re: dnsmasq broken in update? [SOLVED]

Sin.citadel wrote:

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

#11 2010-06-09 21:23:34

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: dnsmasq broken in update? [SOLVED]

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

#12 2010-06-10 12:28:11

ultra_violence
Member
From: Ireland
Registered: 2009-10-30
Posts: 30

Re: dnsmasq broken in update? [SOLVED]

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

#13 2010-06-10 16:48:48

EdgarButan
Member
Registered: 2010-02-09
Posts: 42

Re: dnsmasq broken in update? [SOLVED]

Yes, it works. Thanks a lot.

Offline

Board footer

Powered by FluxBB