From owner-freebsd-questions@FreeBSD.ORG Wed Apr 14 05:15:03 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA8C616A4CE for ; Wed, 14 Apr 2004 05:15:03 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48C8443D49 for ; Wed, 14 Apr 2004 05:15:03 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.10/8.12.10) with ESMTP id i3ECERAa072979 for ; Wed, 14 Apr 2004 07:14:27 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)i3ECEQDK072976 for ; Wed, 14 Apr 2004 07:14:26 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Wed, 14 Apr 2004 07:14:26 -0500 (CDT) From: Eduardo Viruena Silva To: freebsd-questions@freebsd.org Message-ID: <20040414063339.K71038@Gina.esfm.ipn.mx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: /etc/hosts ::1, bind 9, rncd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 12:15:03 -0000 Hello, FreeBSD Gurus! I have a very strange question for you. I have two FreeBSD-5.2.1-p4 boxes, i386 & sparc64. I installed bind-9.3.2 in both computers, configured my /etc/rc.conf as follows: named_enable="YES" named_flags="-u bind" named_program="/usr/local/sbin/named" it worked perfectly in my i386 box, particularly rndc worked fine. Now, in the sparc64 box, I tried: sparc64:/home/mrspock# rndc reload rndc: connect failed: connection refused WHY? I asked myself, in my i386 box it works fine. Then I tried: ------------------------ sparc64:/home/mrspock# rndc -V reload create memory context ... a lot of useful information, and then, this: using server localhost (::1#953) create socket connect rndc: connect failed: connection refused ------------------------ in my i386 box, the things were different: ------------------------ i386:/home/mrspock# # rndc -V reload create memory context ... a lot of useful information, and then, this: using server localhost (127.0.0.1#953) create socket connect create message render message schedule recv send message parse message create message render message schedule recv send message parse message ------------------------ Now, the problem seemed to be that my i386 opened communication with 127.0.0.1#953, and my sparc64 tried: ::1#953 Then I remembered that my rndc.conf file referred to "localhost". The i386 converted it to "127.0.0.1" and the sparc64 to "::1". And finally, I found that, in /etc/hosts there were two lines saying: ::1 localhost 127.0.0.1 localhost and here I am... driving myself crazy... WHY DID NOT MY SPARC TAKE THE FIRST LINE OF localhost IN /etc/hosts/ AS MY I386 DID? To fix it, I just exchange those lines. Incredible, isn't it? What happened here? Should I report this as a bug?? Hope you can give relief by sending me an answer. Thanks in advance. Eduardo.