LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
/etc/hosts help!


Guys!
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
setska
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
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

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

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

127.0.0.1 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 my_domain.com , then your /etc/hosts would read:


127.0.0.1 my_hostname.my_domain.com localhost.localdomain localhost my_hostname
 
Old 05-25-2004, 10:33 AM   #5
setska
LQ Newbie
 
Registered: May 2004
Location: MN
Posts: 11

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


Reply


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


All times are GMT -5. The time now is 06:53 AM.

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