You are not logged in.

#1 2009-08-19 04:47:24

papabean
Member
From: Sacramento, CA
Registered: 2008-12-18
Posts: 26
Website

DNSMasq not caching queries

I've setup dnsmasq per the wiki: http://wiki.archlinux.org/index.php/Dnsmasq. I only need to use it for DNS caching.  DHCP setup is done by net-profiles.

My /etc/dsnmasq.conf has only two lines that are not comments:

listen-address=127.0.0.1
log-queries

My /etc/dhcpd.conf.head has the following line:

nameserver 127.0.0.1

And dnsmasq is the 2nd item in the DAEMONS section of /etc/rc.conf, right after net-profiles.

However, when I issue:

sudo pkill -USR1 dnsmasq
sudo tail /var/log/messages.log

,
I can see that none of my DNS queries are being run locally.

What may I have missed?  What else can I check to see where the failure is occuring?


The world is full of tough guys.  It does not need me to be one, too.

Offline

#2 2009-08-19 06:50:26

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: DNSMasq not caching queries

I believe it should be resolv.conf.head, not dhcpd.conf.head. Test with dig.

Last edited by lucke (2009-08-19 06:51:55)

Offline

#3 2009-08-19 22:00:13

papabean
Member
From: Sacramento, CA
Registered: 2008-12-18
Posts: 26
Website

Re: DNSMasq not caching queries

lucke wrote:

I believe it should be resolv.conf.head, not dhcpd.conf.head.

You're absolutely right.  That's what I meant.  That's my resolv.conf.head up there.

dig www.google.com | grep "Query time"

returns 85 msec the first time

dig www.google.com | grep "Query time"

returns 1 msec.

big_smile  -  It appears to be working today.  Not sure what changed or how, but last night there were 0 queries being handled locally.


The world is full of tough guys.  It does not need me to be one, too.

Offline

Board footer

Powered by FluxBB