[Techtalk] Re: /etc/hosts

Neven Grzancic neven at softnet.si
Thu Oct 3 10:18:39 EST 2002


On Thursday 03 October 2002 08:14, Therese Gustafsson wrote:
> Kristina wrote:
> >Putting it in /etc/hosts I believe will enable the
> >machine to recognize
> >itself by a hostname instead of an IP. You can also
> >reset the hostname
> >using the "hostname" command. Without an argument,
> >hostname will return
> >the hostname, but given an argument (a hostname) it
> >will set the
> >hostname.

I think that's enough just till next reboot.
>
> I have another problem now: I deleted the old hostname
> from /etc/hosts but Apache and sshd still think
> they're at the.old.hostname. I have restarted Apache
> but no change. Where do they get that information from
> if it's not in /etc/hosts anymore?

Try the file /etc/sysconfig/network


briskola



More information about the Techtalk mailing list