Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#33089 - dnsmasq doesn't cache addresses

Attached to Project: Arch Linux
Opened by Linus Zielony (Zielony) - Thursday, 13 December 2012, 22:11 GMT
Last edited by Dave Reisner (falconindy) - Friday, 14 December 2012, 17:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dave Reisner (falconindy)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
dnsmasq, which is running and properly configured, doesn't cache DNS addresses. Each query sent to dnsmasq server causes querying external DNS server. Prove: https://bbs.archlinux.org/viewtopic.php?pid=1205520


Additional info:
* package version: 2.64-1

Steps to reproduce:
Use dig to see query time about address which should be cached after previous query.
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 14 December 2012, 17:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  extra/dnsmasq-2.65
Comment by Mauro Santos (R00KIE) - Thursday, 13 December 2012, 22:39 GMT
I am also seeing this problem. I am not seeing any errors or warnings in the logs. If issuing 'kill -usr1 $(pidof dnsmasq)' and checking /var/log/messages.log I get something like this:

Dec 13 22:31:01 localhost dnsmasq[20224]: cache size 1000, 0/28 cache insertions re-used unexpired cache entries.
Dec 13 22:31:01 localhost dnsmasq[20224]: queries forwarded 6, queries answered locally 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 2, retried or failed 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 2, retried or failed 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 2, retried or failed 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 6, retried or failed 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 2, retried or failed 0
Dec 13 22:31:01 localhost dnsmasq[20224]: server xxx.xxx.xxx.xxx#53: queries sent 2, retried or failed 0

All queries were made about the same address so only 1 query should have been forwarded.

Searching on google doesn't seem to yield any relevant results. I don't know when this might have stated to happen, only noticed it after seeing the forum thread about it.

Resolving addresses specified in "extra" host files works as expected. I don't use the dhcp or sftp server functionality so I can't say if something is broken there.

Edit:
I have confirmed with wireshark that dns requests are actually being made and not being served from cache.
Comment by lilydjwg (lilydjwg) - Friday, 14 December 2012, 17:15 GMT
I can confirm this. And version 2.63-1 does caching.

Loading...