Thread: /etc/hosts file
View Single Post

  #1 (permalink)  
Old 05-08-2007, 01:28 PM
ricc ricc is offline
Member
User
 
Join Date: Jul 2005
Posts: 85
Rep Power: 0
ricc
Default /etc/hosts file

I am using FC6. In earlier versions of RHL and Other Linuxes, the /etc/hosts file used to have an entry like this

Code:
127.0.0.1            localhost.localdomain localhost
but now the entry looks like
Code:
::1     localhost.localdomain   localhost
I dont understand the syntax. I am having difficulty doing anything like

http://localhost.

I have to use the URL http://127.0.0.1

Putting in the extra line:" 127.0.0.1 localhost" in the file /etc/hosts does the trick.

Do we have any other solution to this problem? and What does the new format "::1" mean?.

ricc
Reply With Quote