LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-15-2009, 10:19 AM   #1
lomax0990
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Rep: Reputation: 0
BIND Configuration Issues


I'm currently trying to setup a BIND server to do DNS for multiple domains. I have two servers (only one of which i'm working with now). Both names can be resolved using nslookup from the internet.

On the BIND server itself I can do an NSLOOKUP myexternaldomain.com and it works fine. When I go to another host on an outside network then it comes back and says
Quote:
"connection timed out; no servers could be reached"
I have done a packet capture and I can see the traffic coming into the server and it looks like this:

Quote:
10:48:43.817834 IP schinetdns.mycingular.net.44521 > ns1.mydomain.com.domain: 28493 [1au] A? jacksoncountybash.com. (50)
Jacksoncountybash.com is the domain i'm trying to get ns1.mydomain.com to resolve. I do not see any traffic going out of this machine. So my first thought is iptables/firewall. But i've thought of every which way to open 53 outbound access and still can't seem to get it to work. I'm wondering if something else is a miss.

Below is my named.conf file. It's pretty much stock w/ the exception of the zone information for the domain that I want to be resolved.:
Code:
//
// 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 {
        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;
};

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

zone "." IN {
        type hint;
        file "named.ca";
};

zone "jacksoncountybash.com"
{
        type master;
        file "jacksoncountybash.zone";
        allow-query { any; };
};

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

Does anybody have any ideas that can help me?
 
Old 10-15-2009, 10:28 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
If you try by specifying server ip at time of query i mean
root#dig @dnsserverip -t soa

What it result ?

By the way does any error come in /var/log/messages or
output of following command
#named-checkconf
#named-checkzone acksoncountybash.com <path of zone file>

and another hand ensure /etc/hosts.deny doesn't have wrong entries

thnks

Last edited by vishesh; 10-15-2009 at 10:30 AM.
 
Old 10-15-2009, 10:35 AM   #3
favoretti
LQ Newbie
 
Registered: Jan 2008
Posts: 9

Rep: Reputation: 0
listen-on port 53 { 127.0.0.1; };

It only binds to local loopback interface.

Remove that line and it should start responding...
 
Old 10-15-2009, 10:54 AM   #4
lomax0990
LQ Newbie
 
Registered: Jul 2009
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you favoretti and vishesh for the quick replies!

Favoretti: You were exactly right. It was only binding to the local interface. I can't believe I didn't catch that after all of this time. Thank you very much! I was swearing that it was a firewall issue!
 
  


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
bind Configuration farooqhussain Linux - Networking 2 09-08-2008 09:42 AM
Bind 9.3 configuration metallica1973 Linux - Server 2 03-20-2008 07:31 AM
Bind Configuration namit Linux - Software 1 04-25-2007 10:03 PM
FC 6 BIND Configuration titel Linux - Newbie 2 12-12-2006 10:08 PM
Bind configuration lmcilwain Linux - Software 1 01-31-2004 03:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:21 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