LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   localhost question (https://www.linuxquestions.org/questions/linux-networking-3/localhost-question-192200/)

DriveMeCrazy 06-11-2004 01:21 AM

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?

maxut 06-11-2004 01:33 AM

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

DriveMeCrazy 06-11-2004 01:44 AM

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

maxut 06-11-2004 06:24 AM

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


All times are GMT -5. The time now is 05:32 AM.