Geek Question

Movies, music, food, blood, dogs, Horatio.....
User avatar
SCIN
Posts: 4932
Joined: Fri Sep 20, 2002 1:19 pm

Geek Question

Post by SCIN »

I've googled the crap out of this and can't seem to find an answer.

Does anyone know how to display the client resolver cache on a Linux box? On windoze it's ipconfig/displaydns.

Thanks.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!

-Horatio
Horatio Felacio
Posts: 3338
Joined: Tue Sep 24, 2002 7:26 pm

Post by Horatio Felacio »

you have to hook up to the Geneva Megaserver IPDNS. this will let you know what your transfixilator has been running at for the past 12 gigahertz. now, under options>tools> client resolver cache...should be there looking at you.
Yo HO!! Just got me a code red and some funyons big dawg!!! SHIT YEAH! - Ray, excited about his breakfast
lordjim_2001
Posts: 1764
Joined: Fri May 30, 2003 5:07 pm

Post by lordjim_2001 »

doesn't ipconfig -all do that? It's been too long since I've played with linux.

try "ifconfig". I think that may show what you need.
Screw you guys. I'm going bowling.
User avatar
SCIN
Posts: 4932
Joined: Fri Sep 20, 2002 1:19 pm

Post by SCIN »

Nah, ipconfig is a windows command. There is no argument to ifconfig for displaying the dns cache that I know of.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!

-Horatio
Wes
Posts: 6530
Joined: Thu Sep 19, 2002 3:46 pm

Post by Wes »

Maybe an option within nslookup or dig?

Wes
"There is no secret ingredient"

Po, the kung fu panda
Boyd
Posts: 108
Joined: Fri Apr 09, 2004 3:25 am

Post by Boyd »

is the cache written to disk? i was investigating named and read on a linux forum that dns cache was not viewable since it wasn't saved
User avatar
SCIN
Posts: 4932
Joined: Fri Sep 20, 2002 1:19 pm

Post by SCIN »

Well, some of the TTL times are pretty long so I imagine it is written to disk. Even if it is written to memory that should not be a limitation with the power of Linux. I mean, the whole /proc filesystem isn't even really on disk but is used by many commands in Linux.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!

-Horatio
Eric
Posts: 418
Joined: Thu Jan 02, 2003 10:04 pm

Post by Eric »

have you checked the flux capacitor? it might not be generating the 1.21 gigawatts necessary.
"But what is happiness except the simple harmony between a man and the life he leads?" – Lord Byron
Boyd
Posts: 108
Joined: Fri Apr 09, 2004 3:25 am

Post by Boyd »

i don't manage a dns, but can you try dns logging via adding some code into named.conf depending on implementation (i get lost here) or try tail -f /var/log/messages to look for errors interactively?
zemkat
Posts: 38
Joined: Tue Nov 05, 2002 9:45 pm

Post by zemkat »

Linux does not cache DNS lookups. It queries a nameserver (or /etc/hosts file) every single time it needs it.

Since this can be pretty slow, many linux boxes run a name server locally which will answer queries (from itself) and caches the answers.

The command to interact with the most common of these is "rndc". Two useful rndc commands are "rndc flush" and "rndc dumpdb". The first empties the cache and the second outputs the cache to a database file (which neither Jack nor I have either bothered reading). Restarting the nameserver will also flush the cache, if you don't mind the lack of finesse.

Dig is a nice nameserver interacter, but it mostly acts as a client and not as an administrator. It can tell you things like which name server gave it the answer, if it was cached, and similar details.
Post Reply