[linux-help] Re: $HOSTNAME
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
I'm not sure what distro you're using, but /etc/sysconfig/network doesn't
exist in Debian. So claiming that the hostname is configured there is a bit
premature. Undoubtedly it is configured there for some systems. Since we
don't know what distro "root" is using, I wouldn't jump to the conclusion
that he should modify anythying other than /etc/hostname and possibly
/etc/hosts, but he already did that.
-- Jonathan
On Mon, May 20, 2002 at 12:04:42AM -0500, Jeff Vian wrote:
>
> The system host name is actually 2 places.
>
> /etc/hostname
> (for most things)
>
> and
>
> /etc/sysconfig/network
> (for the rest of the things)
>
> The other file,
> /etc/hosts
> stores name/address mappings so your pc does not have to do a DNS
> lookup for those hosts you choose to put in it.
> This file MUST contain the ip address and name of the local host
> (whatever the hostname and domain is), and the default 127.0.0.1 for the
> localhost and localhost.localdomain. If it does not at least contain
> those, MANY things will not work, such as Xwindows.
>
>
>
> Jonathan Hall wrote:
> >
> > /etc/hostname
> >
> > You pretty well need a hostname... without one, many things will break--most
> > notably, mail.
> >
> > The solution is not to get rid of your hostname, but to properly configure
> > your mail setup.
> >
> > -- Jonathan
> >
> > On Sat, May 18, 2002 at 11:46:46AM -0700, root wrote:
> > >
> > > Hi,
> > >
> > > Does anyone know where or how a system's host name is stored?
> > >
> > > I added it to /etc/hosts, and now it won't go away. I'd just like to
> > > reset
> > > it to nothing.
> > >
> > > Since the host name I chose when I added it to etc/hosts (and I may have
> > > added it somewhere else) is invalid, I can no longer send mail from the
> > > command line.
> > >
> > > E.g. I am a single system using a cable modem with service from Cox High
> > > Speed Internet, on domain: sd.cox.net
> > >
> > > Stupidly, I tried to name my server, "resmar1", so now I can't send mail
> > > because resmar1.sd.cox.net is not a valid host name on the ISP's network.
> > >
> > > How do I get resmar1 to go away?
> > >
> > > If worse comes to worse can I find it with
> > >
> > > find /etc -type f -name * | grep resmar1 ?
> > > -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> > > visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
> >
> > --
> > Useless fact #3: There are 293 ways to make change for a dollar.
> > --
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > Jonathan Hall * jonhall@xxxxxxxxxxxx * PGP public key available
> > Systems Admin, Future Internet Services; Goessel, KS * (620) 367-2487
> > http://www.futureks.net/ * PGP Key ID: FE 00 FD 51
> > -= Running Debian GNU/Linux =-
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> > visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
> -- This is the linux-help@xxxxxxxxx list. To unsubscribe,
> visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
--
Karate is a form of martial arts in which people who have had years and
years of training can, using only their hands and feet, make some of the
worst movies in the history of the world.
-- Dave Barry
--
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Jonathan Hall * jonhall@xxxxxxxxxxxx * PGP public key available
Systems Admin, Future Internet Services; Goessel, KS * (620) 367-2487
http://www.futureks.net/ * PGP Key ID: FE 00 FD 51
-= Running Debian GNU/Linux =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-- This is the linux-help@xxxxxxxxx list. To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi
- [linux-help] Change of address, Joseph L Weaver, 2002/05/18
- [linux-help] CD-ROM boot problems RH7.3, Ivan Trail, 2002/05/28
- [linux-help] Re: CD-ROM boot problems RH7.3, Jeff Vian, 2002/05/28
- [linux-help] Re: CD-ROM boot problems RH7.3, Ivan Trail, 2002/05/28
- [linux-help] Re: CD-ROM boot problems RH7.3, bruce, 2002/05/28
|
|