DNS Error ;; Connection timed out ; no servers could be reached
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
//
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
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.
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.