connecting to localhost while off line

nstone nstone at ispcp.freewayprojects.com
Sat Aug 2 19:06:59 UTC 2008


dave selby wrote:
> Hi All,
> 
> I cannot get access to my localhost when I am off line. Googleing
> https://answers.launchpad.net/ubuntu/+question/36754
> you have to amend /etc/hosts which I have done (my system name is
> dev-system) but this has still not resolved my problem.
> 
> my /etc/hosts file is now ...
> 
> 127.0.0.1 localhost.localdomain localhost dev-system
> 127.0.0.1 localhost dev-system
> 
> 127.0.0.1       localhost
> 127.0.1.1       dev-system
> 
> # The following lines are desirable for IPv6 capable hosts
> ::1     ip6-localhost ip6-loopback
> fe00::0 ip6-localnet
> ff00::0 ip6-mcastprefix
> ff02::1 ip6-allnodes
> ff02::2 ip6-allrouters
> ff02::3 ip6-allhosts
> 
> Can anyone help ?

you only need the one line

127.0.0.1 localhost.localdomain localhost dev-system

what happens when you "ping dev-system" ?




More information about the ubuntu-users mailing list