LinuxQuestions.org
Review your favorite Linux distribution.
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 10-08-2009, 12:39 PM   #1
pooriya
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
DNS Error ;; Connection timed out ; no servers could be reached


I am settimg up DNS on a Fedora 11 box. I have 1 Linux server (linserv1) and 1 linux client (lincli1). at the same time, I have one 1 windows xp and 1 windows server2003(windc1). Linux server is the Master DNS server resolving request from linux client box. I am authorizing windows server box to resolve for windows client. I have a domain called corp.com on linux server which is the master. at the same time time I have the domain for windows server called ad.corp.com.

Once I use the command "Host linserv1.corp.com" to see if DNS is working I recieve an error which ;; Connection timed out ; no servers could be reached

I have the following configuration on my /etc/named.conf
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
forwarders { 192.168.2.1;
};

listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { localhost; };
recursion yes;
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside . trust-anchor dlv.isc.org.;
};

logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};

zone "2.168.192.IN-ADDR.ARPA." IN {
type master;
file "192.168.2.db";
};
zone "corp.com." IN {
type master;
file "corp.com.db";
};
zone "." IN {
type hint;
file "named.ca";
};

include "/etc/named.rfc1912.zones";

include "/etc/named.dnssec.keys";
include "/etc/pki/dnssec-keys/dlv/dlv.isc.org.conf";

Here is what I have in /corp.com.db

$TTL 1H
@ SOA linserv1 root. ( 2
3H
1H
1W
1H )
NS linserv1
lincli1 IN 1H A 192.168.2.203
linserv1 IN 1H A 192.168.2.202
windc1.ad IN 1H A 192.168.2.226
 
Old 10-08-2009, 04:57 PM   #2
PreacherBill
Member
 
Registered: Nov 2006
Location: Louisville, KY
Distribution: CentOS 6
Posts: 41

Rep: Reputation: 15
Here's a couple of things to check:

Did you open port 53 for both tcp and udp on the server's firewall?
Did you start the dns service on the server?

If the answer to both of those questions is yes, do you get the same result running the host command on the linux server and client? Can you ping the linux server from the linux client?

Also FYI - it sounds like you're working from Moskovitz's "Windows and Linux Integration" book. If you are, be aware that there are some things in it that are very out of date, particularly with Fedora. Since the book doesn't bother to explain how a lot of the stuff works, but just says "do this...", be prepared to do lots of research to find out how things work now.

HTH

Bill
 
Old 10-09-2009, 07:44 AM   #3
pooriya
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Dns error

Quote:
Originally Posted by PreacherBill View Post
Here's a couple of things to check:

Did you open port 53 for both tcp and udp on the server's firewall?
Did you start the dns service on the server?

If the answer to both of those questions is yes, do you get the same result running the host command on the linux server and client? Can you ping the linux server from the linux client?

Also FYI - it sounds like you're working from Moskovitz's "Windows and Linux Integration" book. If you are, be aware that there are some things in it that are very out of date, particularly with Fedora. Since the book doesn't bother to explain how a lot of the stuff works, but just says "do this...", be prepared to do lots of research to find out how things work now.

HTH

Bill
Hello Bill,
Yes Port 53 for UPD and TCP is open. The Named service is also running. I should mention that I am running the host command on the server itself. At the same time, both machines can ping themselves and eachother. It is Moskovirz's book right, but I used both Webmin and System-Config_bind utility. I worked around it in different ways, but receiveing the same error. It is killing me. Please help. By the way, do you know where the zone files are? in the configuration information that posted where is it linking to the zone files? thanks

Last edited by pooriya; 10-09-2009 at 08:18 AM.
 
Old 10-09-2009, 08:22 AM   #4
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
who is the 'nameserver' in your /etc/resolv.conf ?
 
Old 10-09-2009, 10:32 AM   #5
pooriya
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Nameserver

Quote:
Originally Posted by avijitp View Post
who is the 'nameserver' in your /etc/resolv.conf ?
Nameserver 192.168.2.202 which is my linux server mashine IP. Please correct me if I have done anything wrong or if I should take further steps. I configured a master zone which is on my linux server box. I have three A recored for linux server box, linux client box and windows server box. Thanks

Last edited by pooriya; 10-09-2009 at 10:35 AM.
 
Old 10-10-2009, 03:19 AM   #6
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
You name server only listens on your loop back address as per your configuration.

Quote:
listen-on port 53 { 127.0.0.1; };
and
allow-query { localhost; };
In this scenario, make sure that your /etc/resolv.conf states following.
Quote:
nameserver 127.0.0.1
If this server is going to serve a particular subnet, you need to add corresponding interface ip in the server in the listen on and allow-query directive.

After this modification, make sure to restart your server and check to make sure that 'named' is running.
 
Old 10-10-2009, 04:56 AM   #7
pooriya
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Great Man

Quote:
Originally Posted by avijitp View Post
You name server only listens on your loop back address as per your configuration.



In this scenario, make sure that your /etc/resolv.conf states following.


If this server is going to serve a particular subnet, you need to add corresponding interface ip in the server in the listen on and allow-query directive.

After this modification, make sure to restart your server and check to make sure that 'named' is running.
Thanks for your help. It worked.
 
Old 10-10-2009, 04:59 AM   #8
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
I am glad that it worked. Dont forget to Click on the "Thumbs up" it is helped you. :-)
 
Old 10-11-2009, 06:45 AM   #9
pooriya
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs Up

Quote:
Originally Posted by avijitp View Post
I am glad that it worked. Dont forget to Click on the "Thumbs up" it is helped you. :-)
Where is "Thumbs Up"? I am new here. Thanks
 
Old 10-11-2009, 07:16 AM   #10
eth1
Member
 
Registered: May 2008
Posts: 97

Rep: Reputation: 20
It's on the right hand side bottom corner in blue in each of a user's posts :-)
 
  


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
DNS- No servers could be reached edgambite Linux - Networking 30 11-05-2008 08:34 PM
nslookup: connection timed out; no servers could be reached kbighorse Linux - Networking 41 07-11-2008 02:46 PM
Connection time out;no servers could be reached sonvu Linux - Networking 1 12-16-2006 09:43 PM
DNS: connection timed out; no servers could be reached ubu_roi Linux - Networking 1 04-13-2005 11:45 AM
connection timed out;no servers could be reached nitin34847 Linux - Networking 0 05-23-2004 12:47 AM

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

All times are GMT -5. The time now is 05:53 AM.

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