nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

/etc/hosts file

This is a discussion on /etc/hosts file within the Linux software forums, part of the Linux Getting Started category; I am using FC6. In earlier versions of RHL and Other Linuxes, the /etc/hosts file used to have an entry ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2007, 12:28 PM
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
Sponsored Links
  #2 (permalink)  
Old 05-08-2007, 07:32 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 919
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Quote:
I dont understand the syntax. I am having difficulty doing anything like
That line desirable for IPv6 capable hosts i.e. it is ipv6 loopback IP. You just need to add IP 127.0.0.1 manually to fix this issue
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Read arguments from a file and pass them to binary file AHJ Shell scripting 1 10-31-2007 06:04 PM
ssh many hosts , su - using different passwords newbewie Shell scripting 3 09-25-2007 05:50 PM
convert pdf (ppt file) into wordppt file sureshbup Linux software 1 12-07-2006 03:51 PM


All times are GMT +5.5. The time now is 11:00 PM.


Powered by vBulletin® Version 3.7.3 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36