Solved

Dynamic DNS update from Linux DHCP Server

Posted on 2009-07-07
1
974 Views
Last Modified: 2012-05-07
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
Comment
Question by:kumarnirmal
1 Comment
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 24799110
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

Join & Write a Comment

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now