From owner-freebsd-hackers Wed Jan 8 13:26:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0572C37B476; Wed, 8 Jan 2003 13:26:34 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2214943ED4; Wed, 8 Jan 2003 13:26:33 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0118.cvx22-bradley.dialup.earthlink.net ([209.179.198.118] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18WNiO-00048M-00; Wed, 08 Jan 2003 13:26:21 -0800 Message-ID: <3E1C971C.7581F3BD@mindspring.com> Date: Wed, 08 Jan 2003 13:24:44 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Peter Much Cc: Gregory Neil Shapiro , hackers@FreeBSD.ORG Subject: Re: sendmail: how to get the named of FreeBSD4.7 standards compliant? References: <20030101181330.C8233@disp.oper.dinoex.org> <3E134659.78028611@mindspring.com> <20030106173652.A495@disp.oper.dinoex.org> <3E1A1336.9F535670@mindspring.com> <20030108000930.A512@disp.oper.dinoex.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4f48fef9d007f6c09f8ccf20decd0186a667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Peter Much wrote: > ! So if I look up an unqualified "froboz", it's assumed to be in > ! the local domain because of the DNS suffix every machine is using, > ! and every machine is using it, either because you told it to, or > ! because that's what the DHCP server told it to use, when it handed > ! each machine it's IP address. > > Exactly. And when this is not found, then the resolver will > inplicitly issue another query for the unqualified name. > > And it is even worse with sendmail, because sendmail does quite > interesting things there - like switching off RES_DEFNAMES - > so this one will definitely not add the local domain. This is broken in 2 ways: 1) The default names option in the standard resolver will prevent another query for the unqualified name, since unqualified names are supposed to get the local domain name, unconditionally. 2) It's possible to change the resolver flags in sendmail by adding lines to the M4 file source code. You need to look at the source tree and read cf/README. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message