dns server not responding
Hi,
I am using fedora core 4 and I am trying to setup a dns server for a while now. When I try to search the server via nslookup or dig it displays the results normally. But when I try access the sever using browser i cant access. I can access the server using the dns address(http://xxx.xxx.xxx.xxx) though. What could be the problem. Thanks in advance. |
Sorry, what server are you trying to access using a web browser? Only web servers can be accessed via a web browser not the DNS server itself.
|
Ya I mean webserver. I was trying to access webserver
using domian name(www.xxx.com) but i could not. I m not sure whether the dns server has been setup properly or not. I checked several times but I could not find any bug. I am running apache 2 as http webserver. But the thing is that when i run nslookup www.xxx.com or dig www.xxx.com i get normal results as i get with any other webservers. But i just cant access the webserver using browser with domian name. i cant help thinking that I might have missed a trick or two. I think i have configured /etc/hosts and /etc/resolv.conf too. |
are you sure that your web server is up and running.
#service httpd status/start secondly is your apache configuration error less. it will be more easier if you will post you DNS files as well as the last 10 lines of your apache configuration. |
the
|
i think that you have not configured your httpd.conf filr properly.
it should be somrthing like this.Because you wanted to open your web_page by your domain name. <VirtualHost 202.224.211.57> ServerName www.yourdomain_name.com DocumentRoot /path/to/your/documents/ ServerAdmin webmaster@yourdomain.com </VirtualHost> After this you can check the systax of this file . #httpd -t it should say syntax ok #service httpd restart |
Thank You very much for the instant reply.
But I still cant get it working. |
#service named reload
#service httpd reload #tail -f /var/log/messeges what does the log messege show. Does it show any error messege.If yes post it. #named-checkconf what is the out put of it.. |
This is the message i got.
[root@server2 ~]# tail -f /var/log/messages Aug 15 02:00:02 server2 crond(pam_unix)[32132]: session opened for user root by (uid=0) Aug 15 02:00:02 server2 crond(pam_unix)[32133]: session opened for user root by (uid=0) Aug 15 02:00:02 server2 crond(pam_unix)[32133]: session closed for user root Aug 15 02:00:02 server2 crond(pam_unix)[32132]: session closed for user root Aug 15 02:01:01 server2 crond(pam_unix)[32147]: session opened for user root by (uid=0) Aug 15 02:01:01 server2 crond(pam_unix)[32147]: session closed for user root Aug 15 02:03:38 server2 named[31074]: loading configuration from '/etc/named.conf' Aug 15 02:05:01 server2 crond(pam_unix)[32327]: session opened for user root by (uid=0) Aug 15 02:05:02 server2 crond(pam_unix)[32327]: session closed for user root Aug 15 02:05:06 server2 named[31074]: loading configuration from '/etc/named.conf' [root@server2 ~]# named-checkconf [root@server2 ~]# Thanks a lot again for your concern. |
First things first follow each step until you have an error.
1. Verify Apache is up and running by entering http://localhost on the physical Apache machine. Probably is since you can access it via IP address. 2. Verify that Apache recognizes its domain name by entering http://domain_name on the physical Apache machine. You may need to set up an entry for it using /etc/hosts. I don't suggest using DNS at this point. 3. Verify DNS resolves to the correct IP by typing in nslookup domain_name on your client machine. I know you did this already but let's do it again. 4. Ping the domain name and ensure that it responds. |
Thank you I will try that.
|
All times are GMT -5. The time now is 08:08 PM. |