It is as simple as setting it in the /etc/sysconfig/network file.
J.

On Wed, 1 Dec 1999, a mole wrote:

> On Tue, 30 Nov 1999, Tom Savage wrote:
> 
> > This little problem is driving me crazy!
> > I'm the original poster of this question and have not got an answer yet!!!
> > In a nutshell here is my problem:
> > When I connect to my ISP via modem my $HOSTNAME changes.  
> > Can this be prevented, and if not what is the best way to change the $HOSTNAME
> > variable back to say "localhost"?
> > 
> 
> Redhat is a bit tricky/clever and decides that if your hostname is setup
> as 'localhost' (or a few varaitions on a theme) then it should try adopt
> the hostname of any new IP address you get.
> 
> If make your hostname anything but localhost the it will keep that name
> all the time.  Something entirely made up will work (as well as localhost
> anyway) as long as it's in your /etc/hosts file.
> 
> Alternitivly you can edit...
> 
>       /etc/sysconfig/network-scripts/network-functions
> 
> ... where it defines the need_hostname() and set_hostname() function and
> make them either check something else or always return false or what ever
> works for you.
> 
> M.
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to