LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-18-2005, 05:10 PM   #1
click
LQ Newbie
 
Registered: Feb 2005
Distribution: Suse
Posts: 3

Rep: Reputation: 0
Display and Flush DNS cache


Hello,
I have a computer assignment and I need the right command in linux. I need to display recent DNS records and clear them whenever I want. In windows "ipconfig /displaydns" and "ipconfig /flushdns" commands are used respectively. Are there any commands in linux which are equivalent to these ones? or in Linux isn't there such an option? Can "ifconfig" solve this problem? If yes what should be the exact options and command line?

Last edited by click; 03-18-2005 at 05:16 PM.
 
Old 03-20-2005, 09:01 AM   #2
odious1
Member
 
Registered: Jun 2003
Location: Virginia, USA
Distribution: Slackware
Posts: 252

Rep: Reputation: 30
rndc dumpdb will write the cache to the named_dump.db

rndc flush with flush the cache

of course you need a caching only name server running on your box

tom
 
Old 01-10-2008, 06:55 AM   #3
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
Hi,
This old thread doesn't answers a very important questions: On linux is there a dns cache on the client/resolver like in windows? Or the client queries the name server for every query it needs resolved?

If yes how can it be displayed?


I mean for boxes which don't run a dns server.

Thanks,
 
Old 01-13-2008, 02:46 PM   #4
Jirka11
LQ Newbie
 
Registered: Jan 2008
Posts: 24

Rep: Reputation: 15
Quote:
Originally Posted by click View Post
Hello,
I have a computer assignment and I need the right command in linux. I need to display recent DNS records and clear them whenever I want. In windows "ipconfig /displaydns" and "ipconfig /flushdns" commands are used respectively. Are there any commands in linux which are equivalent to these ones? or in Linux isn't there such an option? Can "ifconfig" solve this problem? If yes what should be the exact options and command line?
Hello,

to flush the DNS I use "/etc/init.d/nscd restart"

_____________________________________________
http://www.nmonitoring.com
 
Old 02-22-2008, 12:40 AM   #5
siya
LQ Newbie
 
Registered: Dec 2006
Posts: 8

Rep: Reputation: 0
Quote:
Hello,

to flush the DNS I use "/etc/init.d/nscd restart"
And what if nscd is not installed on your system.?
 
Old 09-17-2008, 10:13 AM   #6
OlRoy
Member
 
Registered: Dec 2002
Posts: 306

Rep: Reputation: 86
I also need to know what the Linux equivalent of ipconfig /displaydns is.
 
Old 09-17-2008, 12:18 PM   #7
ddaas
Member
 
Registered: Oct 2004
Location: Romania
Distribution: Ubuntu server, FreeBsd
Posts: 474

Rep: Reputation: 30
as I know there is no equivalent for displaying client dns cache on linux. There is no dns cache on the client side.
If I am wrong please correct me.
 
Old 11-10-2009, 01:00 PM   #8
elvisious
Member
 
Registered: Sep 2003
Distribution: Debian 5.0
Posts: 45

Rep: Reputation: 15
Quote:
rndc dumpdb will write the cache to the named_dump.db
Is this the DNS cache for al the clients in the network that are using the DNS server?
 
  


Reply



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
how-to flush dns cache PlatinumRik Linux - Networking 6 07-27-2011 02:47 PM
how to reload sbp2 module /Flush terminal command cache Lakota Mandriva 1 12-07-2004 02:08 PM
problems with dns-cache kokolisso Linux - Networking 0 05-17-2003 04:43 PM
DNS cache clearing n.antonio Linux - Software 0 05-11-2003 08:44 PM
DNS Cache Architect Linux - Networking 2 10-25-2002 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration