Solved

Dynamic DNS update from Linux DHCP Server

Posted on 2009-07-07
1
977 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

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction You may have a need to setup a group of users to allow local administrative access on workstations.  In a domain environment this can easily be achieved with Restricted Groups and Group Policies. This article will demonstrate how to…
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é.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 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

14 Experts available now in Live!

Get 1:1 Help Now