LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 12-07-2012, 07:52 PM   #1
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,251

Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Question dnsmasq question


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

In /etc/resolv.conf are these directives:

nameserver 127.0.0.1
nameserver 208.67.222.222
nameserver 208.67.220.220

I have www.slackbuilds.org listed in /etc/hosts:

208.94.238.115 www.slackbuilds.org

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

dig @localhost www.slackbuilds.org +short

Dec 7 16:52:22 dnsmasq[6319]: query[A] www.slackbuilds.org from 127.0.0.1
Dec 7 16:52:22 dnsmasq[6319]: /etc/hosts www.slackbuilds.org is 208.94.238.115

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 www.h-online.org +short

Dec 7 16:54:18 dnsmasq[6319]: query[A] www.h-online.org from 127.0.0.1
Dec 7 16:54:18 dnsmasq[6319]: forwarded www.h-online.org to 208.67.222.222
Dec 7 16:54:18 dnsmasq[6319]: reply www.h-online.org is 195.145.108.80

So far so good. Now for the quirk.

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

Dec 7 16:55:04 dnsmasq[6319]: query[AAAA] www.slackbuilds.org from 127.0.0.1
Dec 7 16:55:04 dnsmasq[6319]: forwarded www.slackbuilds.org to 208.67.222.222
Dec 7 16:55:05 dnsmasq[6319]: reply www.slackbuilds.org is <CNAME>

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

Edit: dnsmasq 2.52 on Slackware 13.1

Last edited by Woodsman; 12-07-2012 at 08:35 PM.
 
Old 12-08-2012, 03:43 AM   #2
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
because akregator asks for the AAAA record (ipv6) as you may see
 
2 members found this post helpful.
Old 12-08-2012, 01:30 PM   #3
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,251

Original Poster
Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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?
 
Old 12-10-2012, 06:24 PM   #4
Celyr
Member
 
Registered: Mar 2012
Location: Italy
Distribution: Slackware+Debian
Posts: 314

Rep: Reputation: 77
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
 
Old 12-10-2012, 06:49 PM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,251

Original Poster
Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
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.
 
Old 12-20-2012, 07:28 AM   #6
linuxxer
Member
 
Registered: Apr 2011
Location: I have my own planet
Distribution: SlackwareŽ
Posts: 72
Blog Entries: 1

Rep: Reputation: Disabled
deleted

Last edited by linuxxer; 12-20-2012 at 07:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dnsmasq TTL question Fredde87 Linux - Software 1 04-19-2010 08:31 AM
DNSMASQ anyone? Help! JeffC1 Linux - Software 3 03-31-2009 10:23 AM
dnsmasq doubt/question dpballey Slackware 15 03-05-2008 01:56 PM
dnsmasq question davepass Linux - Software 0 02-25-2006 04:01 PM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM


All times are GMT -5. The time now is 11:51 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration