From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21244 invoked from network); 26 Dec 1998 20:47:00 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 26 Dec 1998 20:47:00 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA22771 for ; Sat, 26 Dec 1998 15:32:51 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id NAA11179 for axp-list@redhat.com; Sat, 26 Dec 1998 13:32:46 -0700 From: Michal Jaegermann Message-Id: <199812262032.NAA11179@ellpspace.math.ualberta.ca> Subject: Re: constantly changing /etc/HOSTNAME file To: axp-list@redhat.com Date: Sat, 26 Dec 1998 13:32:46 -0700 (MST) In-Reply-To: <36854254.D3DD5A6F@infinet.com> from "jmd" at Dec 26, 98 08:08:52 pm Content-Type: text jmd wrote: > > Everytime I connect to my ISP something overwrites the /etc/HOSTNAME > file so that it reads a given address. (ie "a021.pm3-1.nwk.infinet.com") > This change occurs with every login session as far as I can see, so a > revoot will reflect the last dynamic IP assigned. Normally (i.e. in a standard startup used by Red Hat) /etc/rc.d/rc.sysinit startup script sets hostname, and records the change in /etc/HOSTNAME, using values specified in /etc/sysconfig/network file (unless NETWORKING is set to "no"). What actually is in /etc/HOSTNAME is not that important. Even if you are using DHCP it is hard to imagine that your ISP is that "smart" that it rewrites your sysconfig files. I think that something is missing here from your story. BTW - your machine may have different names "internally" and "outside". This is normal. Michal