Re: (fqdn) hostname resolution when using DHCP
A long time ago, in a galaxy far, far way, someone said...
> Salman Ahmed writes:
> > What should I add to this file so I can ping from the machine itself by
> > giving its fqdn hostname ?
>
> 127.0.0.1 matrix.<domain-name> matrix localhost.
>
> With this line any process on the machine can reach the machine itself via
> the fqdn, the hostname, or just 'localhost'.
True.
> Phil Brutsche writes:
> > Having matrix mapped to 127.0.0.1 in /etc/hosts isn't a good thing.
>
> Why?
>
> > It should look like this:
> > 192.168.9.31 matrix.<domain-name> matrix
>
> What use is such a line other than for reverse lookups?
Samba won't necessarily work if you don't have the hostname pointing to
the IP in /etc/hosts. Admittedly if you don't use Samba then either
method will work.
--
----------------------------------------------------------------------
Phil Brutsche pbrutsch@creighton.edu
"There are two things that are infinite; Human stupidity and the
universe. And I'm not sure about the universe." - Albert Einstein
Reply to: