LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-28-2013, 01:12 PM   #1
hoomanv
LQ Newbie
 
Registered: Jul 2013
Distribution: CentOS
Posts: 5

Rep: Reputation: Disabled
nameserver (bind) resolution by hint and forwarding


Hello

I have the following rules in named.conf that is basically for resolving all external domain names.

Code:
recursion yes;

zone "." {
   type hint;
   file "named.ca";
};
There is an internal active directory server that controls the "lab.local" domain. What I want is to enable named resolve .local requests via the active directory server and resolve anything else recursively via the root servers.

I tried adding another zone to forward .local requests but it does not work. I think I can only have master zones go along with the hint zone.

Code:
zone "lab.local." {
   type forward;
   forwarders { 192.168.0.250; };
};

Last edited by hoomanv; 07-28-2013 at 01:27 PM.
 
Old 07-28-2013, 01:37 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Try adding forward only; below the type forward; directive.

And remember to restart bind.
 
Old 07-28-2013, 01:51 PM   #3
hoomanv
LQ Newbie
 
Registered: Jul 2013
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Try adding forward only; below the type forward; directive.

And remember to restart bind.
I have already tried that, no success

Doing an nslookup for lab.local gives NXDOMAIN and for sub.lab.local gives SERVFAIL
 
Old 07-28-2013, 02:06 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
I have the following definition in my /etc/named.conf:
Code:
zone "company.local" IN {
        type forward;
        forward only;
        forwarders { 192.168.100.21; };
};
192.168.100.21 is a Windows DC at the other end of a VPN connection. I'm running bind 9.9.2, and this definitely works.

Have you checked that the remote server actually accepts DNS queries from your server? And that there isn't some silly typo hiding somewhere in /etc/named.conf?

Edit: You have a trailing dot after the domain name. Try removing it.

Last edited by Ser Olmy; 07-28-2013 at 02:08 PM.
 
Old 07-28-2013, 02:22 PM   #5
hoomanv
LQ Newbie
 
Registered: Jul 2013
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: Disabled
I've attached my latest named.conf

both windows DCs are up and responsive

Still not working
Attached Files
File Type: txt named.conf.txt (993 Bytes, 49 views)

Last edited by hoomanv; 07-28-2013 at 02:26 PM. Reason: attachment
 
Old 07-28-2013, 02:54 PM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Apart from the view definition, it looks pretty similar to my own (working) configuration.

Does running nslookup -q=soa lan.local 192.168.0.250 on the DNS server return the proper SOA record?

Have you tried running named in the foreground with logging to stderr to see what's really going on? Debug level 3 should be sufficient (named -d 3 -g -c /etc/named.conf).
 
1 members found this post helpful.
Old 07-28-2013, 03:26 PM   #7
hoomanv
LQ Newbie
 
Registered: Jul 2013
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Does running nslookup -q=soa lab.local 192.168.0.250 on the DNS server return the proper SOA record?
yes

Quote:
Originally Posted by Ser Olmy View Post
Have you tried running named in the foreground with logging to stderr to see what's really going on? Debug level 3 should be sufficient (named -d 3 -g -c /etc/named.conf).
I just did, here's the log file
Attached Files
File Type: txt log.txt (28.5 KB, 31 views)
 
Old 07-28-2013, 03:52 PM   #8
hoomanv
LQ Newbie
 
Registered: Jul 2013
Distribution: CentOS
Posts: 5

Original Poster
Rep: Reputation: Disabled
Disabling dnssec will fix the problem. now I have to find a way to enable dnssec on windows DC since I don't want to leave this option off
 
Old 07-28-2013, 04:06 PM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,340

Rep: Reputation: Disabled
Your zone setting is valid, and a recursive query is being sent to the right server:
Code:
29-Jul-2013 00:49:33.662 error (insecurity proof failed) resolving 'lab.local/A/IN': 192.168.0.251#53
This is DNSSEC related. The issue is described in this bug report.

My server isn't configured to use DNSSEC validation, which is why it works.

Edit: A bit slow today, you beat me to it.
 
  


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 Nameserver Setup Murphyslaw4267 Linux - Server 4 06-25-2012 10:20 AM
Which zone bind dns work either in forward zone are reverse zone sanjay87 Linux - Server 2 06-05-2012 04:21 AM
BIND forward zone OK, reverse zone NOT OK! n03x3c Linux - Server 2 11-05-2008 10:31 PM
LXer: Resolving Domains Internally And Externally With Bind9 And Caching Nameserver LXer Syndicated Linux News 0 02-11-2007 08:33 AM
Bind configuration for multiple sub-domains on multiple sites JF1980 Linux - Networking 3 08-31-2006 01:28 PM

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

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