LinuxQuestions.org
Visit Jeremy's Blog.
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 07-20-2012, 05:31 PM   #1
agriz
Member
 
Registered: Nov 2011
Posts: 197

Rep: Reputation: Disabled
;; connection timed out; no servers could be reached


named.conf
Code:
options {
        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 auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic";
};
/etc/resolv.conf

Code:
nameserver 8.8.8.8
nameserver 8.8.4.4
When i comment this two lines it works.
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };

But if i add nameserver 127.0.0.1 in /etc/resolv.conf and if i restart the named, it is not working.

I am getting the same error.
I checked fireall. Port 53 is open in tcp and in udp

Please give some suggestions.
 
Old 07-21-2012, 12:03 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 12,238

Rep: Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685Reputation: 1685
Hi,

Quote:
When i comment this two lines it works.
listen-on port 53 { 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
Those 2 lines tell bind to listen only on the local loopback interface, so it can't be used from other hosts in your network. If you want to use your dns from other hosts you don't need those 2 lines.

Quote:
But if i add nameserver 127.0.0.1 in /etc/resolv.conf and if i restart the named, it is not working.
In your clients, you should used the public IP of your dns server.

If you want bind to answer queries from other hosts in your network, you need to comment out
Quote:
allow-query { localhost; };
so it allows queries from any host
Also better use:
Code:
allow-recursion { localnets; localhost;};
instead of
Quote:
recursion yes;
Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Error ;; Connection timed out ; no servers could be reached pooriya Linux - Networking 9 10-11-2009 07:16 AM
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 03:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration