Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-25-2004, 09:55 AM   #1
LQ Newbie
Registered: May 2004
Location: MN
Posts: 11

Rep: Reputation: 0
/etc/hosts help!

I'v screwed everything up.... again. Tell me how the line in /etc/hosts should look like, pleeeeaaase.

thannks much for any help.
Old 05-25-2004, 09:57 AM   #2
LQ Newbie
Registered: May 2004
Location: MN
Posts: 11

Original Poster
Rep: Reputation: 0
sorry, almost forgot.
I'm using RH EL
Old 05-25-2004, 10:23 AM   #3
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
#lugo The next line is all that was in the file. I am commenting it out.
#      debian  localhost
#lugo Put in next block to try to get networking.       localhost       debian      apricot
This is mine but on Debian.
Old 05-25-2004, 10:23 AM   #4
Registered: Nov 2003
Location: CT, USA
Posts: 55

Rep: Reputation: 15
At the very least your /etc/hosts file should read: localhost.localdomain localhost

If you have changed your hostname and your domain then you will have to make some minor changes.

For example we'll pretend your hostname is my_hostname and your domain is , then your /etc/hosts would read: localhost.localdomain localhost my_hostname
Old 05-25-2004, 10:33 AM   #5
LQ Newbie
Registered: May 2004
Location: MN
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you guys very much.
have a good day.
I'm pretty sure I'll be back later with more screw ups though


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 04:51 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 10:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 04:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 02:57 AM
hosts.allow / hosts.deny fistz Linux - Newbie 1 04-19-2001 08:00 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration