From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: alan.nguyen@au.transport.bombardier.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: BIND servers: primary & secondary Date: Fri, 17 Jan 2003 13:12:00 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1042769526 7086 80.91.224.249 (17 Jan 2003 02:12:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 17 Jan 2003 02:12:06 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18ZLzF-0001pd-00 for ; Fri, 17 Jan 2003 03:12:01 +0100 Original-Received: (qmail 22090 invoked by uid 5); 17 Jan 2003 02:13:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22068 invoked by uid 49493); 17 Jan 2003 02:13:12 -0000 Original-Received: from alan.nguyen@au.transport.bombardier.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(0.3/5.0):. Processed in 0.410215 secs); 17 Jan 2003 02:13:12 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 17 Jan 2003 02:13:12 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8U00J3965ZWJ@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 16 Jan 2003 21:13:12 -0500 (EST) Original-Received: from demas002.adtranz.com (demas002.adtranz.com [213.68.98.31]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H8U0022K65QB3@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 16 Jan 2003 21:13:03 -0500 (EST) Original-Received: from de.transport.bombardier.com (demalng2 [53.191.115.105]) by demas002.adtranz.com (8.12.5/8.12.5) with SMTP id h0H2D0XC012875 for ; Fri, 17 Jan 2003 03:13:01 +0100 (MET) Original-Received: by de.transport.bombardier.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256CB1.000C2A3B ; Fri, 17 Jan 2003 03:12:52 +0100 Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline X-Lotus-FromDomain: TRANSPORT Xref: main.gmane.org gmane.os.tru64.managers:2994 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2994 Hi Thanks Very Much to these guys, James Sainsbury, Steve VanDevender, JEFFREY THOMAS, Hudson James, Johan.Brusche for their help and hints. My question: I have 1 primary server & 2 secondary servers running and configured in tru64 4.0F with the latest PK7. Problem: When the primary server was shutdown (or powered off) , from the DNS client machine I typed, nslookup or ping , it took a long time to respond, more than a minute which is not good at all as I assume the secondary server must take over to resolve request straight away. But From the BIND secondary server, I got a response straight away when I either ping or nslookup any hosts. Below is their responses Typical resolvers use the list of name server IP addresses in /etc/resolv.conf in the order listed. If the first does not respond after some timeout period, then the second is tried, then the third, etc. The timeout is application-configurable but typically not in a way you can easily reconfigure. If your resolv.conf lists your primary and secondary nameservers in that order, and you know the primary is going to be down, temporarily removing the primary from resolv.conf will cause the secondary to be queried immediately. ----------------------------------------------------------- I would guess that I has to do with the DNS timeout on the client, that is how long the client will wait for the response from the primary before trying the secondary... You didn't state the OS on the client. Seems like Windows waits a very long time before trying the secondary. I've had applications timeout before the secondary was queried. Does anyone else have any more info on this? ------------------------------------------------------------------ Bind is 'passive'. It merely listens for requests. If the primary bind server is down, the secondary does not 'take over'. The client machines must be configured to look at the next DNS server. On the clients add the secondary servers to the /etc/resolv.conf file. ------------------------------------------------------------- The retry count and interval coded into nslookup are set such that the failover to the secondary server happens after 75 secs. You have some control over it by using the environment variable RES_OPTIONS RES_OPTIONS="retrans:3 retry:2 " See manpage resolver or do a google on RES_OPTIONS Alan.Nguyen@au.transport.bombardier.com