Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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 )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.