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 02-13-2013, 09:59 PM   #1
jaymzter
LQ Newbie
 
Registered: Apr 2005
Location: Republic of Texas
Posts: 9

Rep: Reputation: 0
DNS Views not being updated by DDNS


This may only be a question of me misunderstanding DNS views. I have DDNS setup on my network and it works, my zone is updated when DHCP clients register. I also have split DNS views setup and they work, hosts in different views get different query results returned. The problem is that I have two views: "Unfiltered" and "Default" (names are arbitrary). When a new DHCP host registers, only the "Default" view can see it. So for example, even though both views share the same zone file, only "Default" hosts can do an nslookup against the new host, "Unfiltered" hosts cannot see it using a forward or reverse lookup unless bind is restarted.

Host server:Ubuntu 10.04.4 LTS
DHCP:dhcp3-server 3.1.3-2ubuntu3.4
DNS:bind9 1:9.7.0.dfsg.P1-1ubuntu0.8

/etc/bind/named.conf.local
Code:
include "/etc/bind/rndc.key";
controls {
        inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
view "unfiltered" {
        include "/etc/bind/named.conf.default-zones";
        match-clients { 192.168.1.56; 192.168.1.39; 127.0.0.1; };
        recursion yes;
        forwarders { 192.168.1.1; };
        zone "example.home" {
         type master;
         notify no;
         file "/var/lib/bind/example.home";
         allow-update { key "rndc-key"; };
        };
        zone "1.168.192.in-addr.arpa" {
        type master;
        notify no;
        file "/var/lib/bind/db.192";
        allow-update { key "rndc-key"; };
        };
};
view "default" {
        include "/etc/bind/named.conf.default-zones";
        match-clients { "any"; };
        recursion yes;
        zone "example.home" {
         type master;
         notify no;
         file "/var/lib/bind/example.home";
         allow-update { key "rndc-key"; };
};
        zone "1.168.192.in-addr.arpa" {
        type master;
        notify no;
        file "/var/lib/bind/db.192";
        allow-update { key "rndc-key"; };
        };
};
/etc/dhcp3/dhcpd.conf
Code:
server-identifier       192.168.1.4;
authoritative;
default-lease-time      86400;
allow unknown-clients;
option  subnet-mask     255.255.255.0;
option  broadcast-address       192.168.1.255;
option  routers  192.168.1.1;
option  domain-name-servers     192.168.1.4, 192.168.1.1;
option  domain-name     "example.home";
option  netbios-name-servers    192.168.1.4;
option  time-offset     -18000; # Central Time
ddns-updates on; # Dynamic DNS enabled
ddns-update-style       interim;
ddns-domainname "example.home";
ddns-rev-domainname "in-addr.arpa";
key "rndc-key" {
        algorithm hmac-md5;
        secret "gobbldygook";
};
zone example.home {
primary 127.0.0.1;
key rndc-key;
}
zone 1.168.192.in-addr.arpa {
primary 127.0.0.1;
key rndc-key;
}
subnet 192.168.1.0      netmask 255.255.255.0
{
        range   192.168.1.30 192.168.1.55;
        }
host host00.example.home    {
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 192.168.1.28;
        option  routers  192.168.1.3;
       option host-name static00;
        }
host host01.example.home    {
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 192.168.1.29;
        option  routers  192.168.1.3;
       option host-name static01;
        }
host host02.example.home    {
        hardware ethernet xx:xx:xx:xx:xx:xx;
        fixed-address 192.168.1.56;
        }
Any thoughts?
 
Old 02-14-2013, 02:24 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,

Why you use forwarders? Comment out
Quote:
forwarders { 192.168.1.1; };
and see if it works

Regards
 
Old 02-14-2013, 08:42 AM   #3
jaymzter
LQ Newbie
 
Registered: Apr 2005
Location: Republic of Texas
Posts: 9

Original Poster
Rep: Reputation: 0
"Default" uses a different set of forwarders, which are defined in /etc/bind/named.conf.options. This is why I'm using views, different off-net forwarders for different classes of hosts.

I've upgraded the system and am now having trouble reproducing the issue, so it may be resolved.
 
  


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
How fast number of views and replies in forums is updated and how it's done? alan_ri LQ Suggestions & Feedback 1 05-23-2011 10:34 AM
dns with internal and external views settings cool47 Linux - Networking 1 05-25-2008 04:20 PM
Dynamic DNS ( DDNS ) sasa.g Linux - Networking 0 05-14-2006 10:54 AM
ddns (dynamic dns) kuru Linux - Software 1 12-29-2004 03:01 AM
DNS and DDNS mr_spooky Linux - Networking 3 03-11-2004 11:45 PM

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

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration