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 10-23-2002, 10:58 AM   #1
Architect
LQ Newbie
 
Registered: Oct 2002
Location: New York
Posts: 1

Rep: Reputation: 0
DNS Cache


I have a Linux Java Application that communicates with J2EE servers (RMI/IIOP). I will be using a DNS sever to load balance among the application servers (can't find any existing load balancer that specifically handles RMI/IIOP). When/if an application server fails I can take it out of the DNS list. However, I believe that Linux caches the name entries on the client. Does anyone know how long the cache entries live on Linux? Is there a way to flush the cache, or bypass it from a Java application?

The behavior I am looking for is: server goes down... i take the server out of the DNS server list.... the application gets a communications error (ORB error, can't communicate with the current server).. then the app flushes the DNS entry or cache on the Linux client and retrys the DNS lookup... it gets to the DNS server which points the client machine to a new (working) application server...

Is this possible?
 
Old 10-23-2002, 11:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,397

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
i think the entries validity is defined by each zone file, the expires, refresh options etc...

the cache is restarted each time bind is restarted, and no other way AFAIK
 
Old 10-25-2002, 04:02 AM   #3
RijilV
Member
 
Registered: Sep 2002
Location: somewhere
Distribution: gentoo
Posts: 123

Rep: Reputation: 15
Unless you are running Bind or some other nameserver, Linux does no internal caching of DNS. There is no built in nameserver to the Linux kernel.


depending on how much control you have over this enviroment, you can make the nameservers your Linux clients are using slave servers to your master list you're taking entries out of, so when you update and restart those nameservers they'll push down the changes. also you can lower the values for caching (man named.conf )
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how-to flush dns cache PlatinumRik Linux - Networking 6 07-27-2011 02:47 PM
DNS losing cache vasillalov Linux - Networking 7 12-27-2007 05:16 PM
Squid 2.4 DNS cache refreshing siapliw Linux - Networking 0 09-26-2003 01:47 AM
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


All times are GMT -5. The time now is 09:04 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