LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2004, 01:21 AM   #1
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Rep: Reputation: 15
localhost question


what might be the problem if your web browser can't resolve http://localhost/ ?
Using Mozilla, and from status bar i can see that its trying to resolve localhost into http://www.localhost.com/.

Is there some settings that I am missing?
I have checked that the apache server is up

anyone?
 
Old 06-11-2004, 01:33 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
try to ping localhost
if it works, check mozilla congiration. if it doesn work check /etc/resolv.conf. there must be a line about localhost . here is my /etc/hosts file
127.0.0.1 teknik.egemen teknik localhost.localdomain localhost
 
Old 06-11-2004, 01:44 AM   #3
DriveMeCrazy
Member
 
Registered: Mar 2004
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by maxut
try to ping localhost
if it works, check mozilla congiration. if it doesn work check /etc/resolv.conf. there must be a line about localhost . here is my /etc/hosts file
127.0.0.1 teknik.egemen teknik localhost.localdomain localhost
arrggh... stupid me how come i neber think of that.
btw, i got this in my resolv.conf:


search localdomain
nameserver 192.168.0.1 #my router

Is the above ok? i only did changes to hosts file

Thanks alot anyway
 
Old 06-11-2004, 06:24 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
ohh sorry. u r right. it is not a trouble with /etc/resolv.conf
i typed /etc/resolv.conf instead of /etc/hosts accidently
 
  


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
Localhost Localdomain Question threegig Linux - Newbie 9 06-15-2005 07:29 AM
Message from syslogd@localhost localhost kernel: Disabling IRQ #21 ylts Linux - Hardware 0 02-26-2005 08:01 AM
localhost.localdomain & apache question neozero62 Linux - Newbie 3 11-30-2003 03:51 PM
dns requests from localhost to localhost keex Linux - Networking 2 11-13-2003 01:47 PM
lan://localhost question and connection sharing steve423 Linux - Networking 4 12-27-2002 01:23 PM

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

All times are GMT -5. The time now is 01:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration