LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   dns server not responding (https://www.linuxquestions.org/questions/linux-networking-3/dns-server-not-responding-353010/)

divdude 08-13-2005 10:04 PM

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.

aznluvsmc 08-13-2005 11:09 PM

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.

divdude 08-14-2005 12:17 AM

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.

roopunix 08-14-2005 01:19 AM

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.

divdude 08-14-2005 02:06 AM

the

roopunix 08-14-2005 02:22 AM

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

divdude 08-14-2005 02:39 AM

Thank You very much for the instant reply.
But I still cant get it working.

roopunix 08-14-2005 02:58 AM

#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..

divdude 08-14-2005 03:11 AM

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.

aznluvsmc 08-14-2005 08:35 PM

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.

divdude 08-15-2005 02:29 AM

Thank you I will try that.


All times are GMT -5. The time now is 08:08 PM.