Subject: Re: FQDN
To: None <netbsd-users@netbsd.org>
From: Georges Heinesch <geohei-ml@geohei.lu>
List: netbsd-users
Date: 05/15/2001 04:10:46
Quoting Manuel Bouyer (14-May-01 20:28:50):

> On Mon, May 14, 2001 at 12:06:29PM +0100, Georges Heinesch wrote:
>> Quoting Manuel Bouyer (13-May-01 13:48:42):
>> 
>> > On Sat, May 12, 2001 at 08:52:02AM +0100, Georges Heinesch wrote:
>> >> Hi.
>> >> 
>> >> I use NetBSD on a local LAN (3 machines in total). Every night
>> >> (by a daemon), I get the message that my hostname is not entered
>> >> as FQDN, which is true.
>> 
>> > I suspect it's sendmail which is complaining.
>> 
>> Correct.
>> 
>> > If so, you may want to
>> > tweak /etc/mail/semdmail.cf and add something like:
>> > Djlocalhost.antioche.eu.org
>>              ^^^^^^^^^^^^^^^^
>> That's the point. What shall I enter here. My domain changes all
>> the time when I log in to my primary ISP (provider) [the IP address
>> changes at every dialup], and also when I call my alternate ISP.

> What you want; it doesn't matter as long as this FQDN host name is
> defined in /etc/hosts and points to your machine (either 127.0.0.1
> or your local interface). Of course it's better to set it to the
> FQDN you usually use for your emails
> (e.g. localhost.geohei.lu)

Since geohei.lu is a valid Internet domain, is there no possibility of
a conflict between the local LAN FQDN 'geohei.lu' and the real valid
Internet FQDN 'geohei.lu'?

I guess my /etc/hosts file should then look like this?

----- cut here -----
::1         localhost
127.0.0.1       localhost
192.168.1.1     amiga.geohei.lu amiga3000 a3000 a3k
192.168.1.2     dimension.geohei.lu dim pc
192.168.1.3     latitude.geohei.lu lat laptop lap
----- cut here -----

Correct?

BTW, is it required that I set the domain part of the hostname, or can
I live as well without?

The point is that I don't know if I can/should (?) set a valid/invalid
(?) domainname in case I use my LAN locally (i.e. no Internet
resolution through the gateway).

TIA

-- 
Cu  Georges Heinesch, Luxembourg
    geohei@geohei.lu
    http://www.geohei.lu
    PGP RSA & DH/DSS public key on request and on public servers

... what goes up, must come down ...