Sorry to the rest of you, this is a bit off-topic... :-(

On Sun, 7 Feb 1999, David Leslie wrote:

> I am currently connecting to my ISP using ifup and ifdown.  I seem to
> have a problem that my machine name changes (to line***.*@domain) and
> then I can't start new windows (X won't let me).
> 
> I want to know how to get from where I am to using diald, and how to
> stop the name changing problem.  Any help would be most appreciated.

I had the same name changing problem as you until I put a proper name on
my PC.  It seems like Redhat (my version is 5.1) thinks that you shouldn't
use the name "localhost".  From
/etc/sysconfig/network-scripts/network-functions :

----------------------------------------------------- need_hostname() {
    if [ "`hostname`" = "(none)" -o "`hostname`" = "localhost" -o \
         "`hostname`" = "localhost.localdomain" ]; then
        NEEDHOSTNAME=yes
    else
        unset NEEDHOSTNAME
    fi
}
-------------------------------------------------------

... and of course in the script /etc/sysconfig/network-scripts/ifup you
will find:
-------------------------------------------------------
if [ -n "$BOOTPHOSTNAME" -a -n "$NEEDHOSTNAME" ]; then
   set_hostname $BOOTPHOSTNAME
fi
-------------------------------------------------------

Well, I guess Redhat has their reasons, but I haven't found any
documentation saying that "localhost" is an undesired name.  Not that I
have been looking after I solved the problem.  But quite confusing, yes.
It is probably not a bug but a feature :-), however it should be better
documented.

When it comes to learning diald, I don't have any other suggestions than
reading the excellent documentation and examples available for diald....
:-)

--
Regards, Tore Reimers                        http://home.c2i.net/treimers/


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to