Try hostname
that will do it, else try man hostname to learn about it..
Darryl
At 11:24 1/12/99 , you 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"?
>
>Thanks
>
>On 30-Nov-99 PATRICK C. GENTRY wrote:
> > I'm trying to do the same. I'm on a network on my computer name is wrks01
> > and I would like to change it to something creative. I tried adding an
> > alias of it but it wouldn't work.
> >
> > Any suggestions?
> >> Subject: how to control $HOSTNAME
> >> Resent-Date: 30 Nov 1999 01:15:14 -0000
> >> Resent-From: [EMAIL PROTECTED]
> >> Resent-cc: recipient list not shown: ;
> >>
> >> Hello All
> >>
> >> I just recently installed SAMBA (2.05) on my RH 5.2 (intel) on my
> system, so
> >> I
> >> can connect to my Windows 98 system in the best possible manner. Well the
> >> installation of SAMBA was suprisingly(sp?) easy and I got things connected
> >> pretty much the way I wanted.
> >>
> >> One problem persited though, as SAMBA (smbd,nmbd) would suddenly stop
> >> working
> >> without any apparent changes on my part. all of a sudden, i would lose the
> >> abil
> >> ity to reach my samba services from my Windows machine. I would get an
> error
> >> regarding an "unknown host" from smbd.. (this is from log.smbd)
> >>
> >> [1999/11/23 01:04:24, 0] lib/util_sock.c:open_socket_in(854)
> >> Get_Hostbyname: Unknown host tim-annex-port16.vianet.on.ca
> >>
> >>
> >> Well I finally tracked down the cause:
> >> Of course when I connect to the internet using dialup to my ISP , my
> >> "hostname"
> >> would get changed to something like: "tim-annex-port16.vianet.on.ca"
> >> (I get a dynamic ip number from my ISP)
> >> My solution was to issue the following command:
> >> "hostname localhost.localdomain"
> >>
> >> Now finally for the question:
> >> Is there a way to prevent the above problem?
> >> If not, what would be the best way to keep my $HOSTNAME at
> >> "local.localdomain"?
> >>
>----------------------------------
>E-Mail: Tom Savage <[EMAIL PROTECTED]>
>Date: 30-Nov-99
>Time: 19:19:24
>Timmins, Ontario, Canada
>This message was sent by XFMail
>----------------------------------
>
>
>--
>To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
>as the Subject.
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.