LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-24-2008, 03:38 PM   #1
exscape
Member
 
Registered: Aug 2007
Location: Sweden
Distribution: OS X, Gentoo, FreeBSD
Posts: 82

Rep: Reputation: 15
dnsmasq not caching for my domains


Kind of odd. The caching seems to work great for all domains, except those that I own! I can't figure out why. All but one go to the same IP - the box running dnsmasq - but I have a subdomain to another IP that also doesn't cache.

Quote:
# My domain
exscape sbin # while :; do dig supernova.exscape.org | grep 'Query time'; sleep 1; done
;; Query time: 45 msec
;; Query time: 42 msec
;; Query time: 49 msec
;; Query time: 48 msec

# My domain
exscape sbin # while :; do dig fdiv.org | grep 'Query time'; sleep 1; done
;; Query time: 86 msec
;; Query time: 45 msec
;; Query time: 59 msec
;; Query time: 58 msec

# The following are obviously not mine

exscape sbin # while :; do dig linuxquestions.org | grep 'Query time'; sleep 1; done
;; Query time: 0 msec
;; Query time: 0 msec
;; Query time: 0 msec
;; Query time: 0 msec

exscape sbin # while :; do dig lkml.org | grep 'Query time'; sleep 1; done
;; Query time: 36 msec
;; Query time: 0 msec
;; Query time: 0 msec
;; Query time: 0 msec
Any ideas? Not a big deal, you might say, but I run smokeping towards the first mentioned address - which causes 4 DNS lookups every 5 seconds. No point in harassing my ISP like that.
I've changed the smokeping config to the IP for now, but it's a dynamic IP so I'd rather have the DNS cache working properly.

Also, as I said, I can't figure out why - or where to start, so I don't know what kind of details to offer. Except...
/etc/resolv.conf contains quite simply "nameserver 127.0.0.1"
dnsmasq 2.41

Thanks in advance

EDIT: What the heck... After some more troubleshooting using dig, I noticed that the TTL of all my domains seems to be 0! Off to check out the DNS control panel.
... Yep, that was it. Probably something caused by EditDNS's (my DNS provider) migration to bind or something.

Last edited by exscape; 02-24-2008 at 04:05 PM.
 
  


Reply

Tags
caching, dns, dnsmasq


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Resolving Domains Internally And Externally With Bind9 And Caching Nameserver LXer Syndicated Linux News 0 02-11-2007 08:33 AM
Sub Domains & Multiple Domains (Apache) lugos Linux - Server 1 09-01-2006 10:22 PM
dnsmasq question davepass Linux - Software 0 02-25-2006 04:01 PM
Dnsmasq dunkyb Linux - Software 0 03-16-2003 02:25 PM
HELP! Caching DNS server wont resolve .EDU domains? spadesmaster Linux - Networking 0 04-30-2002 10:25 AM


All times are GMT -5. The time now is 09:27 PM.

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