Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1068
  • Last Modified:

Dynamic DNS update from Linux DHCP Server

We have our primary DNS & DHCP servers running on linux. we also having active directory in our company. we have enabled zone forwarding on our linux dns server to point out the active directory DNS server. Also i have enabled scavenging on active directory integrated DNS servers.

In our company machines are frequently changed to different subnets and we change the hostnames too.so we do have duplicate entries in our active directory integrated DNS server. it will take 15 day to scavange these records. I don't want to reduce the default scavange period time.


Is there is any way to configure dynamically update DNS records in the Linux DHCP servers.so that when ever a new ip address assigned to a computer from Linux DHCP server same will be updated automatically in the Active Directory Integerated DNS zone.
0
kumarnirmal
Asked:
kumarnirmal
1 Solution
 
Duncan RoeSoftware DeveloperCommented:
Certainly you can have DHCP update DNS - I have that here at home (and subsequently cloned at work). In my etc/named.conf below. The critical entries for dynamic updating are the "allow-update" lines. Not sure why I don't have them for reverse-ARP, must check if it's working one of these days. There's a matching ddns-update-style entry in my /etc/dhcpd.conf.
How active directory would integrate with the above I have no idea
08:17:50$ cat named.conf
acl "locals" { 10.255.255.0/24; 192.168.0.0/24; 127.0.0.0/8; };
options {
  directory "/var/named";
  forward only;
  forwarders { 198.142.0.51; 203.2.75.132; };
  allow-transfer { none; };
  allow-query { "locals"; };
  allow-recursion { "locals"; };
};
 
zone "mshome.net" IN {
  type master;
  file "mshome.net";
  forwarders { };
  allow-query { "locals"; };
  allow-transfer { "locals"; };
  allow-update { 192.168.0.120; };
};
zone "0.168.192.in-addr.arpa" IN {
  type master;
  file "ten.emohsm";
  forwarders { };
  allow-query { "locals"; };
  allow-transfer { "locals"; };
  allow-update { 192.168.0.120; };
};
zone "local.net" IN {
  type master;
  file "local.net";
  forwarders { };
  allow-query { "locals"; };
};
zone "255.255.10.in-addr.arpa" IN {
  type master;
  file "ten.lacol";
  forwarders { };
  allow-query { "locals"; };
};
 
===============================
 
08:22:20$ cat dhcpd.conf
option domain-name "mshome.net";
option domain-name-servers 127.0.0.1;
ddns-update-style interim;
ignore client-updates;
 
subnet 192.168.0.0 netmask 255.255.255.0
{
  range 192.168.0.1   192.168.0.119;
  range 192.168.0.121 192.168.0.254;
  max-lease-time 2592000;
  default-lease-time 604800;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.0.255;
  option routers 192.168.0.120;
  option domain-name-servers 192.168.0.120;
}

Open in new window

0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now