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
shortandsharpAsked:
Who is Participating?
 
ahoffmannCommented:
DNS problem on the client, or missing virtual host configuration for abc.com in httpd.conf (the latter could be identified by simply reading the error logs;-)
0
 
gb-sdcCommented:
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?
0
 
shortandsharpAuthor Commented:
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?
0
Protect Your Employees from Wi-Fi Threats

As Wi-Fi growth and popularity continues to climb, not everyone understands the risks that come with connecting to public Wi-Fi or even offering Wi-Fi to employees, visitors and guests. Download the resource kit to make sure your safe wherever business takes you!

 
gb-sdcCommented:
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)
0
 
shortandsharpAuthor Commented:

What does the "hostname" command return? it return abc.com without the www. thanks a lot.
0
 
gb-sdcCommented:
on the server, what happens if you ping abc.com?
0
 
NopiusCommented:
> 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?
0
 
thstephCommented:
Do you have a router on? Have you reset it and left dhcp auto by mistake? Happened to me before
0
 
shortandsharpAuthor Commented:
okay this is resolved as I found out that it is my dns server that is down.

thanks a lot!
0
 
NopiusCommented:
shortandsharp, ahoffman was first who clearly said that's a DNS problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.