From owner-freebsd-current@FreeBSD.ORG Thu Feb 16 08:46:50 2006 Return-Path: X-Original-To: current@freeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9217A16A420; Thu, 16 Feb 2006 08:46:50 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA81C43D48; Thu, 16 Feb 2006 08:46:49 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5EC58.dip.t-dialin.net [84.165.236.88]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.1/8.13.1) with ESMTP id k1G8YIoI054721; Thu, 16 Feb 2006 09:34:19 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.3/8.13.3) with ESMTP id k1G8kkFd059634; Thu, 16 Feb 2006 09:46:46 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 16 Feb 2006 09:46:46 +0100 Message-ID: <20060216094646.8qqpg683cwk0o0ww@netchild.homeip.net> X-Priority: 3 (Normal) Date: Thu, 16 Feb 2006 09:46:46 +0100 From: Alexander Leidinger To: current@freeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: re@freeBSD.org Subject: reversed behavior with nsswitch.conf X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 08:46:50 -0000 Hi, yesterday I debugged a mail problem where the reverse DNS of the receiver is somewhat fucked up (for one receiver the DNS resolving chain was: HostA -> IP-A -> HostB -> IP-B -> HostB, for the other receiver there was no reverse DNS). Sendmail doen't like this, but there are ways to circumvent this. So I added the hosts in question to /etc/hosts (nsswitch contains "hosts: files dns"), and thought this will solve it. It didn't. A temporary (as in "to get those 10 mails out") work-around of "hosts: files" proved that the solution of adding the hosts to /etc/hosts works as expected. The current solution for the general case is to use "hosts: dns files". It gets the correct values for the buggy remote hosts from /etc/hosts, and averything else from DNS. So it seems the order of the use of the entries in nsswitch.conf is reversed. I noticed this on a 6.0 system. I can't test this on a -current system right now (maybe tomorrow or at the weekend), and I don't have a RELENG_6 system. So if someone can confirm if this bug is visible on -current and on RELENG_6: - a fix can be MFCed if it is fixed in -current - someone could try to fix it if the same problem exists in -current - an errata can be added to the release notes of 6.1 if it isn't fixed until the release (that's the reason why I CCed re@) Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 I know you think you thought you knew what you thought I said, but I'm not sure you understood what you thought I meant.