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 04-28-2017, 09:01 PM   #1
roe-dk
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
bind9 - How to set up conditional forwarder for .local domain?


I can't really figure out what I'm doing wrong here, or if some sort of black magic is required to set up a conditional forwarder for a .local domain.

The setup is as follows:

Debian running bind9.....->.....Win2008R2 DNS.....->.....Google DNS
192.168.0.1/24..................192.168.10.1/24..........8.8.8.8
mydomain.local..................2nddomain.local
................................3rddomain.com

named.conf.options on the Debian is set up to use the Windows as forwarder:
Code:
forwarders {
   192.168.10.1;
};
So one would think any request not pertaining to mydomain.local would be forwarded to 192.168.10.1
But looking at the cached lookups on the Windows box I can see that they are for all other domains than 2nddomain.local

I've tried adding a conditional forwarder specifically for 2nddomain.local in named.conf.local:
Code:
zone "2nddomain.local" {
   type forward;
   forwarders {192.168.10.1;};
};
But no luck.

nslookup against the Debian:
Code:
root@myserver:/etc/bind# nslookup
> server 192.168.0.1
Default server: 192.168.0.1
Address: 192.168.0.1#53
> host.2nddomain.local
Server:         192.168.0.1
Address:        192.168.0.1#53

** server can't find host.2nddomain.local: NXDOMAIN
>
nslookup against the Windows DNS:
Code:
root@myserver:/etc/bind# nslookup
> server 192.168.10.1
Default server: 192.168.10.1
Address: 192.168.10.1#53
> host.2nddomain.local
Server:         192.168.10.1
Address:        192.168.10.1#53

host.2nddomain.local     canonical name = host2.2nddomain.local.
Name:   host2.2nddomain.local
Address: 192.168.10.153
>
Any particular configuration needed to make forwarders work for .local domains?
3rddomain.com, .org, .net or any other public TLD work fine.
Clients using the Debian bind server can also easily resolve hosts directly in the mydomain.local domain.

Any tips?
 
Old 04-30-2017, 03:53 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Is your debian box authoritative for the whole .local zone, or just mydomain.local? For the latter you should not have any problem, but you should remove the forwarders clause.

Anyway, you should post the zonefile(s) and maybe the config file(s) too, so we could understand your setup.

If debian is authoritative for the whole .local, then ditch also the the definition of 2nddomain.local as a forward zone and use $ORIGIN to define a different NS for 2nddomain.local:
Code:
<- Usual zonefile stuff like SOA etc->
$ORIGIN mydomain.local.
@          NS debian.mydomain.local.
debian A 192.168.0.1

$ORIGIN 2nddomain.local.
@          NS windoze.box.
 
  


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
[SOLVED] Linux Bind conditional forwarder based on dst domain dr.x Linux - Server 9 05-08-2015 07:55 AM
[SOLVED] Bind9: Unable to ping "domain.local" even though there are no apparent errors. chronoloraptor Linux - Server 3 03-28-2013 02:31 AM
How do I set up a domain with bind9? Muscovy Linux - Server 7 07-22-2010 11:29 PM
passwd: can't get local yp domain: Local domain name not set powah Linux - Security 4 06-08-2006 09:59 AM
[bind9] how set default search domain? nio Linux - Software 2 08-13-2005 03:52 PM

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

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