-   Slackware (
-   -   dnsmasq question (

Woodsman 12-07-2012 08:52 PM

dnsmasq question
I use dnsmasq for DNS name caching. In dnsmasq.conf I have strict-order specified.

In /etc/resolv.conf are these directives:


I have listed in /etc/hosts:

When I use dig to test, the dnsmasq log shows only a localhost lookup. This is expected because no external DNS name server is needed. For example:

dig @localhost +short

Dec 7 16:52:22 dnsmasq[6319]: query[A] from
Dec 7 16:52:22 dnsmasq[6319]: /etc/hosts is

When I use dig to query a domain name not in /etc/hosts, the dnsmasq log shows the results of an expected external query. For example:

dig @localhost +short

Dec 7 16:54:18 dnsmasq[6319]: query[A] from
Dec 7 16:54:18 dnsmasq[6319]: forwarded to
Dec 7 16:54:18 dnsmasq[6319]: reply is

So far so good. Now for the quirk.

When I fetch the RSS feed with akregator, which uses the domain, the dnsmasq log shows an external DNS server lookup:

Dec 7 16:55:04 dnsmasq[6319]: query[AAAA] from
Dec 7 16:55:04 dnsmasq[6319]: forwarded to
Dec 7 16:55:05 dnsmasq[6319]: reply is <CNAME>

Why does dnsmasq forward a lookup request to when I use akregator but not with dig?

Edit: dnsmasq 2.52 on Slackware 13.1

Celyr 12-08-2012 04:43 AM

because akregator asks for the AAAA record (ipv6) as you may see

Woodsman 12-08-2012 02:30 PM

Okay, thank you. I did not know what AAAA meant. :) I will have to learn more. Now that you've explained what is happening, why is akregator asking for an ipv6 address when an ipv4 address already exists?

Celyr 12-10-2012 07:24 PM

Well, it's up to Akregator wich record to ask, maybe you may have a look to the settings. At the moment i find ipv6 pretty pointless so i just blacklist the module and i'm happy with that

Woodsman 12-10-2012 07:49 PM

Looks like the problem is AAAA lookups are performed before A. A possible solution is editing /etc/resolv.conf with 'options single-request'. Also, /etc/hosts has to be updated with a feedback loop for IPv6. I haven't worked my way through or tested all of this yet. For now, like you, I've gone back to disabling ipv6 system-wide.

linuxxer 12-20-2012 08:28 AM


All times are GMT -5. The time now is 01:09 AM.