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?