JBoss applications does not pick secondary nameserver when primary nameserver goes down on RHEL 6.1/OpenJDK

Solution Verified - Updated -

Issue

  • We have a number of JBoss based applications on RHEL 6.1 with two name servers configured in /etc/resolv.conf.
  • We are using OpenJDK and it is configured not to permanantly cache DNS names.
  • If the primary DNS server in resolv.conf stops working or is taken down for maintenance, the appliations insides JBoss will never use the secondary DNS server. This causes them to timeout and crash.
  • I realise it could be RHEL or OpenJDK related. I need to know why the Java process for JBoss does not instantly fail over to using the other name server configured in /etc/resolv.conf.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.1.0
  • OpenJDK
  • Red Hat Enterprise Linux (RHEL) 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.