LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2010, 06:34 AM   #1
cola
Senior Member
 
Registered: Sep 2007
Posts: 1,045

Rep: Reputation: 65
Is there any problem with this /etc/hosts file?


cat /etc/hosts
Code:
127.0.0.1   localhost.localdomain localhost
127.0.0.1   darkstar.example.net darkstar
 
Old 01-03-2010, 06:51 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Why do you ask?
Seems ok to me
 
Old 01-03-2010, 07:56 AM   #3
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
The only thing thats noticeable is that you didnt bother to change your host settings and went with the installation defaults.
 
Old 01-03-2010, 08:13 AM   #4
Ivshti
Member
 
Registered: Sep 2008
Distribution: Linvo
Posts: 132

Rep: Reputation: 43
Why are you defining 127.0.0.1 two times? Define it only once.. for example, delete the second line.
 
Old 01-03-2010, 08:51 AM   #5
JokerBoy
Member
 
Registered: Sep 2009
Posts: 140

Rep: Reputation: 24
# cat /etc/hosts
Code:
# For loopbacking.
127.0.0.1       localhost
# This next entry is technically wrong, but good enough to get TCP/IP apps
# to quit complaining that they can't verify the hostname on a loopback-only
# Linux box.
127.0.0.1       pc.example.net pc
 
Old 01-03-2010, 07:37 PM   #6
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
localhost.localdomain is probably unnecessary.

EDIT: Frankly I really don't though lol. I spent like a full couple hours last year trying to figure out loopback interaction with /etc/hosts and people always tell you a different way to set up /etc/hosts depending on who you talk to and what Linux/BSD you are using.

Last edited by amiga32; 01-03-2010 at 08:40 PM.
 
  


Reply



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
About hosts file ! shipon_97 Linux - Newbie 3 10-13-2009 03:14 AM
How to tell what process last wrote to a file? - hosts file being updated by unk kcoriginal Linux - General 1 12-28-2008 11:53 PM
Problem with hostname and /etc/hosts file toxikco2 Debian 6 03-07-2007 08:55 PM
Linux hosts file problem mikeheggy Linux - Networking 4 01-08-2005 11:52 AM
does the /etc/hosts file work same as the M$ hosts file? Lleb_KCir Linux - Software 6 04-03-2004 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:20 PM.

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
Open Source Consulting | Domain Registration