Link to home
Start Free TrialLog in
Avatar of shortandsharp
shortandsharp

asked on

Cannot access domain name but can access server through ip

My apache server is running well. All of a sudden, the following happens

httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

I have check Virtual Host in /etc/httpd/conf/httpd.conf and etc/hosts

May I know what's wrong?

thanks
Avatar of gb-sdc
gb-sdc

What does the /etc/hostst file contain for 127.0.0.1?

What does the "hostname" command return?

Does this match ServerName in httpd.conf?
Avatar of shortandsharp

ASKER

When I restart the apache server now, every thing is okay no error log, but my domain name is still not working! I wonder why all of a sudden this happen?
Do you have a web browser on the server?

If so, try connecting to http://localhost
If that works, try connecting to http://hostname (while still on the server)

What does the "hostname" command return? it return abc.com without the www. thanks a lot.
on the server, what happens if you ping abc.com?
Avatar of Arty K
> When I restart the apache server now, every thing is okay no error log, but my domain name is still not working!

Do you have  internal DNS or your domain name is registered somewhere else?
Who owns a DNS server for your domain name?
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Do you have a router on? Have you reset it and left dhcp auto by mistake? Happened to me before
okay this is resolved as I found out that it is my dns server that is down.

thanks a lot!
shortandsharp, ahoffman was first who clearly said that's a DNS problem.