[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: how to control $HOSTNAME Please Help!



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"?

One technique that I used to use was to add:

	hostname localhost.localdomain

to my /etc/ppp/ip-up.local script.

I still do something similar, but since I'm on a cable modem, it's in
rc.local and a few other scripts of mine that I've employed from
time-to-time to deal with bringing the interface down and back up.

-W-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]