[clug-talk] hostname

Mitchell Brown mbgb14 at gmail.com
Mon May 8 09:51:54 PDT 2006


So if I put "127.0.0.1 mycomputer localhost" it will respond to both
hostnames?

On 5/8/06, timmy <tim at timmy.ws> wrote:
>
> You will want to create that file as well as edit your /etc/hosts file;
> it should look similar to this:
>
> 127.0.0.1       localhost.localdomain   localhost
> 192.168.0.1   hostname.of.box        shorthostname
>
> I don't know about K/Ubuntu, but in Debian. there is a file in the
> /etc/init.d dir called 'hostname.sh'. This is run upon bootup, and all
> the file does is read /etc/hostname and set the hostname to what is in
> that file (if the file exists, of course).
>
> HTH
>
> Mitchell Brown wrote:
>
> > It says its supposed to be at /etc/hostname -- but it aint!
> >
> > On 5/8/06, *Mark Carlson* <carlsonmark at gmail.com
> > <mailto:carlsonmark at gmail.com> > wrote:
> >
> >     On 5/8/06, Mitchell Brown <mbgb14 at gmail.com
> >     <mailto:mbgb14 at gmail.com>> wrote:
> >     > I don't seem to have a hostname file in etc :-/ should I make it?
> >
> >     read the man page for hostname
> >
> >     if it says /etc/hostname is the correct file, then create one.
> >
> >     without the file, `hostname` could be returning the FQDN ( `hostname
> >     -f` ) which will be localhost unless you change it by some other
> means
> >     (such as in the /etc/hosts file)
> >
> >     -Mark
> >
> >     _______________________________________________
> >     clug-talk mailing list
> >     clug-talk at clug.ca <mailto:clug-talk at clug.ca>
> >     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 <mbgb14 at gmail.com
> > <mailto:mbgb14 at gmail.com>>
> >     Primary key fingerprint:  812B 94BC EA0D 345A CC1C 2ED9 F7F6 5CCF
> > 9091 C422
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >clug-talk mailing list
> >clug-talk at clug.ca
> >http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> >Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> >**Please remove these lines when replying
> >
>
> _______________________________________________
> clug-talk mailing list
> clug-talk at clug.ca
> http://clug.ca/mailman/listinfo/clug-talk_clug.ca
> Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
> **Please remove these lines when replying
>



--
pub 1024D/9091C422 02/05/2006 Mitchell Brown <mbgb14 at gmail.com>
    Primary key fingerprint:  812B 94BC EA0D 345A CC1C 2ED9 F7F6 5CCF 9091
C422
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://clug.ca/pipermail/clug-talk_clug.ca/attachments/20060508/daf30ea9/attachment.htm


More information about the clug-talk mailing list