-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Localhost should point to the 127.0.0.1 entry in /etc/hosts. The actual host name usually points to the IP of the box.
On my K/Ubuntu and Debian boxen, /etc/hostname exists for all of them, so something weird happened. The format of the /etc/hostname file is simple, just the short name, no options, no long domain names, nothing. The hosts file is a basically used to resolve names on the LAN, without using DNS. Once you have the hostname in the /etc/hostname file, reboot and all should be well. Cheers, Mitchell Brown wrote: > If I change it in /etc/hosts then localhost will no longer work if i > type in "http://localhost" will it. This sounds like a bad idea as > localhost should always point to the local machine, yes? > > On 5/8/06, *Darren L* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: > > check the network config file. > > check under /etc/hostname (if it exists) > > check /etc/hosts > > > > On 5/8/06, *Mitchell Brown* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, sorry for frequent posting but this is something that has vexed > me forever! > > localhost being the hostname sucks. Now, I can goto a terminal and > do "hostname mynewhostname" as root and it changes it. For that > session. As soon as I reboot its back to localhost!!!! Why? How can > I change it? I know in U/Kubuntu you set it during the install, and > it actually sticks but thats the only distro so far that I've seen!!! > > -- > pub 1024D/9091C422 02/05/2006 Mitchell Brown < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > Primary key fingerprint: 812B 94BC EA0D 345A CC1C 2ED9 F7F6 > 5CCF 9091 C422 > > _______________________________________________ > clug-talk mailing list > [email protected] <mailto:[email protected]> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php > <http://clug.ca/ml_guidelines.php>) > **Please remove these lines when replying > > > > _______________________________________________ > clug-talk mailing list > [email protected] <mailto:[email protected]> > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php > <http://clug.ca/ml_guidelines.php>) > **Please remove these lines when replying > > > > > -- > pub 1024D/9091C422 02/05/2006 Mitchell Brown <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> > Primary key fingerprint: 812B 94BC EA0D 345A CC1C 2ED9 F7F6 5CCF > 9091 C422 > > > ------------------------------------------------------------------------ > > _______________________________________________ > clug-talk mailing list > [email protected] > http://clug.ca/mailman/listinfo/clug-talk_clug.ca > Mailing List Guidelines (http://clug.ca/ml_guidelines.php) > **Please remove these lines when replying -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEX3hbwRXgH3rKGfMRAuohAJ43VimfDDlgqcleHUks7KLDqMlgNACfVIMS uJdxNR/g6acvEqEuF5bw4oQ= =ohUT -----END PGP SIGNATURE----- _______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

