LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-14-2003, 12:36 AM   #1
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Rep: Reputation: 15
/etc/hosts


Quote:
Could not look up internet address for (aBunchOfLettersAndNumbers). This will prevent GNOME from operating correctly. It may be possible to correct the problem by adding (aBunchOfLettersAndNumbers) to the file /etc/hosts.
This is the message that I just recently started getting after I log into my account. I'm not too sure what to do here and I would like to avoid messin anything up. Did this happen as a result of some change that occured from my isp? Cause I dont remember making any changes to my network settings at all. Could somebody please advise me on how to edit the /etc/hosts file safely.. Many thanks..

eix
 
Old 07-14-2003, 02:30 AM   #2
Evilone
Member
 
Registered: Oct 2002
Location: UK
Distribution: Slack 9.1 (2.6.5)
Posts: 307

Rep: Reputation: 30
Would you care to elaborate on "Abunchoflettersandnumbers" ??

As far as i know hosts contains a list of computers on your network. You may well have slipped up and entered a bad address. As far as editing safely, hosts will NOT do any damage if you screw it up. Use somthing like JOE or VI to edit the file and save it, then give your machine a reboot.
 
Old 07-14-2003, 07:18 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
No answer to give

lnxusr01 and I have the same problem, see thread

http://www.linuxquestions.org/questi...threadid=72391
 
Old 07-15-2003, 02:40 AM   #4
eixem
LQ Newbie
 
Registered: May 2003
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Evilone
Would you care to elaborate on "Abunchoflettersandnumbers" ??
CPE00e0293125eb-CM014140018781

I assumed that the actual string of letters and numbers was not important but there it is none the less. It has not affected my internet access or disabled anything that I am aware of so its not terribly important that this is fixed. It would however be nice to put the issue at rest.

Thanx for the replies...

eix
 
Old 07-15-2003, 03:59 PM   #5
lnxusr01
LQ Newbie
 
Registered: Jul 2003
Distribution: Red Hat 9
Posts: 9

Rep: Reputation: 0
Arrow how to do it

as Mathieu said, I had the same problem also, but it is now fixed (thanks seabass55!).

I'm assuming you have DSL or cable, chances are you don't have a specific hostname required by your ISP but check with them first if you're not sure.

Go click on the above link to the thread. Or, here's how I did it:

Using a text editor (I used gedit) open up etc/sysconfig/network.

It should say:

NETWORKING=yes
HOSTNAME=[your bunch of numbers and letters are probably here]

Edit the file so the second line reads

HOSTNAME=[pick a cool hostname, or the one your ISP assigned you]

Save the file and exit.

Still in your text editor, open up etc/hosts.

After the remarked message about not deleting the line, you should see:

127.0.0.1 localhost [string of numbers and letters like before]

Edit it to read:

127.0.0.1 localhost [the same hostname you used above]

***Be sure to keep "localhost" there - if you delete it your computer may hang when starting certain networking apps on bootup (I found this out by accident).

Save, exit, and restart the computer.
 
Old 07-15-2003, 04:26 PM   #6
serz
Member
 
Registered: Apr 2003
Location: Buenos Aires, Argentina
Distribution: Slackware, Gentoo
Posts: 397

Rep: Reputation: 30
Most of the distros uses /etc/hosts but for example redhat uses /etc/sysconfig/network.
 
  


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
External Hosts Resolve but Local Hosts Do Not kjm9 Linux - Networking 7 11-19-2005 03:51 PM
hosts.allow & hosts.deny question... jonc Linux - Security 9 03-05-2005 09:41 PM
Adding shell commands to hosts.deny and hosts.allow ridertech Linux - Security 3 12-29-2003 03:52 PM
hosts.deny and hosts.allow defaults? gui10 Linux - Security 5 12-20-2001 01:57 AM
hosts.allow / hosts.deny fistz Linux - Newbie 1 04-19-2001 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04: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