cant ping external website

Rashkae ubuntu at tigershaunt.com
Fri Sep 26 17:05:06 UTC 2008


Derek Broughton wrote:
> Mark Haney wrote:
> 
>>> Server configurations would hardly be likely to need it, would they?
>> If servers wouldn't need it, why would /any/ system need it?  Can
>> someone tell me that?
> 
> OK, I phrased that badly :-)
> 
> Production servers likely have no need for multiple host names on the
> loopback interface.
> 
> My development server, as I mentioned, has all of my various web projects
> with a separate IP on the loopback adapter, so that apache can see them as
> different virtual hosts:
> 
> $ grep 127 /etc/hosts
> 127.0.0.1 localhost
> 127.0.1.1 bella
> 127.0.2.1 nagisa.pointerstop.ca nagisa
> 127.0.2.2 plonevdc.pointerstop.ca plonevdc
> 127.0.2.3 nagisa2.pointerstop.ca nagisa2
> 
> but strictly you're right - it's only a server that could take advantage of
> that.


More to the point, a system with a static IP address would have it's
hostname associated with that static IP, but since most non-server
system don't have a static IP on hosts, and need to be able to resolve
their own Hostname to an IP Address, and using 127.0.0.1 for that
purpose has unintended consequences, the network config has to use
something in the 127.x range.  Some distros might use 127.0.0.2, Debian
(and Ubuntu) uses 127.0.1.1... the details don't matter.

Course, this was all very well explained in the article Noop found for
us, which I found very educational.  I strongly suggest anyone wanting
to debate the point read it thoroughly, and if he/she still disagrees,
come back with something more than "well, I've never done it this way,
so I think it's wrong."




More information about the ubuntu-users mailing list