From owner-freebsd-questions@FreeBSD.ORG Tue Sep 9 19:49:50 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D73B7536 for ; Tue, 9 Sep 2014 19:49:50 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9EECCD76 for ; Tue, 9 Sep 2014 19:49:50 +0000 (UTC) Received: from [192.168.0.27] (rbn1-216-180-76-199.adsl.hiwaay.net [216.180.76.199]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id s89JnlNg015930 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Tue, 9 Sep 2014 14:49:48 -0500 Message-ID: <540F5B52.5070300@hiwaay.net> Date: Tue, 09 Sep 2014 14:56:02 -0500 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 CC: "FreeBSD Questions !!!!" Subject: Re: minor sendmail issue .... References: <540F26AC.7040309@hiwaay.net> <20140909182735.2bb371c5.freebsd@edvax.de> <540F3613.8060608@hiwaay.net> <20140909213532.34f02807.freebsd@edvax.de> In-Reply-To: <20140909213532.34f02807.freebsd@edvax.de> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2014 19:49:50 -0000 On 09/09/14 14:35, Polytropon wrote: > On Tue, 09 Sep 2014 12:17:07 -0500, William A. Mahaffey III wrote: >> I think I have that point (matching names in rc.conf & hosts) covered: >> >> >> [root@kabini1, /etc, 12:14:40pm] 407 % grep -i kabini rc.conf hosts >> rc.conf:hostname="kabini1" >> hosts:192.168.0.27 jaguar kabini1 >> [root@kabini1, /etc, 12:14:41pm] 407 % > Yes, which means no: There's no entry for 127.0.0.1 for > that host. Local sendmail is listening on that IP. > > Also read "man 5 hosts" about what the fields of this > file, separated by spaces, indicate: > > > > As you can see, "jaguar", the official host name as per > hosts file, does not match the hostname "kabini1" set > in rc.conf. In order to have several names for one IP > (which is possible and valid), you can simply add more > than one entry for each IP, for example: > > 127.0.0.1 localhost.local localhost > 127.0.0.1 kabini1.local kabini1 > 192.168.0.27 kabini1.local kabini1 > 192.168.0.27 jaguar.local jaguar > > You can check if your settings are correct by testing > them with the "host " command. > > > >> but w/ no domain name .... I'll try jaguar.local in hosts & see how that >> goes .... Thx :-) .... > The domain name isn't essentially required, but it > does not harm to define one. :-) > > > Very well, I wasn't aware you could have multiple entries in the hosts files. I have been sloppy about official name & aliases for yeasrs now, might account for this & other odd but harmless behavior on my LAN :-/ .... I will make the changes as you recommend this shortly. The 'kabini1.local' can be in hosts but not rc.conf ? -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.