LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-13-2005, 10:04 PM   #1
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Rep: Reputation: 0
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.
 
Old 08-13-2005, 11:09 PM   #2
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
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.
 
Old 08-14-2005, 12:17 AM   #3
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 08-14-2005, 01:19 AM   #4
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
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.
 
Old 08-14-2005, 02:06 AM   #5
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
the

Last edited by divdude; 08-14-2005 at 10:30 AM.
 
Old 08-14-2005, 02:22 AM   #6
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
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
 
Old 08-14-2005, 02:39 AM   #7
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thank You very much for the instant reply.
But I still cant get it working.
 
Old 08-14-2005, 02:58 AM   #8
roopunix
Member
 
Registered: Feb 2004
Location: Kathmandu
Distribution: Redhat/fedora/Suse [Wanna Drive With Debian]
Posts: 208

Rep: Reputation: 30
#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..
 
Old 08-14-2005, 03:11 AM   #9
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
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.
 
Old 08-14-2005, 08:35 PM   #10
aznluvsmc
Member
 
Registered: Aug 2004
Location: Newmarket, Ontario
Distribution: OpenSuse 10.2
Posts: 184

Rep: Reputation: 30
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.

Last edited by aznluvsmc; 08-14-2005 at 08:37 PM.
 
Old 08-15-2005, 02:29 AM   #11
divdude
LQ Newbie
 
Registered: May 2005
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you I will try that.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
Redirect when web server not responding Bebo Programming 6 07-29-2004 12:22 PM
Server not responding on public IP MS3FGX Linux - Networking 4 07-02-2004 04:16 PM
DNS not responding plz reply nitin34847 Linux - Networking 3 05-23-2004 02:36 PM
dns not responding to out side querys bradyc Linux - Newbie 1 10-16-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration