Subject: Re: FQDN
To: None <netbsd-users@netbsd.org>
From: Georges Heinesch <geohei-ml@geohei.lu>
List: netbsd-users
Date: 05/14/2001 12:12:28
Quoting Pascal Cabaud (12-May-01 13:21:29):
> 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 dial up into the Internet to my provider, i.e. the system doesn't
>> have a permanent connection.
>>
>> Questions:
>> 1. Should I consider entering a domain into /etc/rc.conf?
>> 2. If yes, what should I enter?
>> (My IP address changes during every dialup)
> I don't understand... You have a LAN with 3 NetBSD boxes, right ?
No. I NetBSD box and 2 WinNT. The 2 WinNT machines are not important
for the problem exposed here.
> How does your LAN work if you have not configured /etc/hosts and
> /etc/rc.conf ? Before configure named(8), I had :
> $ more /etc/hosts
> 127.0.0.1 localhost
> 192.168.1.2 kabs.bertillon.fr localhost kabs
> 192.168.1.1 diablotin.bertillon.fr diablotin diab
> 192.168.1.3 meleze.bertillon.fr meleze
----- cut here -----
::1 localhost
127.0.0.1 localhost
192.168.1.1 amiga amiga3000 a3000 a3k
192.168.1.2 dimension dim pc
192.168.1.3 latitude lat laptop lap
----- cut here -----
> $ more /etc/rc.conf | grep hostname
> # Fully Qualified Internet Domain Name (a.k.a. hostname, e.g.
> foo.baz.edu) hostname="mars.bertillon.fr"
> # if blank, use /etc/myname
> # if there's only one way out of your network, set this to the
> hostname
----- cut here -----
hostname="amiga"
----- cut here -----
> $ more /etc/rc.conf | grep ifconfig
> auto_ifconfig=YES # config all avail.
> interfaces
----- cut here -----
<blank>
----- cut here -----
> $ more /etc/ifconfig.sn0
> inet 192.168.1.1 netmask 0xffffff00
> (sn0 is the Ethernet interface of my boxes)
----- cut here -----
192.168.1.1 netmask 0xffffff00
----- cut here -----
> You should read the NetBSD Install Guide and the Networking-HOWTO
> (see <http://www.netbsd.org/Documentation/>). A good introduction
> to IP is here : <http://www.3com.com/nsc/501302s.html>.
Gonna have a look at that. Thanks!
> To answer to your questions, choose a domain name and some machine
> names.
The question is which domain I should chosse if I have a dialup with
changing domains.
> You could choose your IPs for your boxes in :
> 10.0.0.0 with 24 address bits
> 172.16.0.0 with 20 address bits
> 192.168.0.0 with 16 address bits
That's done as you see above.
> pc
--
Cu Georges Heinesch, Luxembourg
geohei@geohei.lu
http://www.geohei.lu
PGP RSA & DH/DSS public key on request and on public servers
... N1, TO/GA, 80 KTS, V1, ROTATE, Postive climb, Gear up ...