Date: Tue, 09 Sep 2014 14:56:02 -0500 From: "William A. Mahaffey III" <wam@hiwaay.net> Cc: "FreeBSD Questions !!!!" <freebsd-questions@freebsd.org> Subject: Re: minor sendmail issue .... Message-ID: <540F5B52.5070300@hiwaay.net> In-Reply-To: <20140909213532.34f02807.freebsd@edvax.de> References: <540F26AC.7040309@hiwaay.net> <20140909182735.2bb371c5.freebsd@edvax.de> <540F3613.8060608@hiwaay.net> <20140909213532.34f02807.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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:
>
> <IP> <official host name> <alias(es)>
>
> 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 <name>" 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?540F5B52.5070300>
