NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
kejones
Jul 31, 2014Tutor
AD Dynamic DNS registrations - Possible improvements for 6.x
Hi Folks,
I joined the forum today because both my NAS's lost their DNS entries in our AD-based domain today and I was looking for advice to stop it happening again. I saw that a number of people have been asking about how to set up their devices to register DNS addresses in an AD friendly way once they've joined a NAS to an AD domain. There's been a number of responses that suggest that people should add manual records to DNS servers because it's not possible, or that you need to loosen up the AD DNS servers so that they accept unsecured updates. I think I've actually come up with a solution that might remove the need to do any of that and then might actually be easily implemented directly in new firmware editions :-)
All I've done basically is add a shell script (I named it "ads" for simplicity) to the /etc/cron.daily directory with the following;
------------
#!/bin/sh
net ads dns register -P
-----------
That should (theoretically) set up a daily cron job that registers the DNS entries once per day using the credentials Samba already has provided to it. If all goes well, then it should keep DNS registrations up-to-date. I did the same for a CentOS system a while back and it seemed to work.
Is it a simple as that or am I missing something?
Keith
I joined the forum today because both my NAS's lost their DNS entries in our AD-based domain today and I was looking for advice to stop it happening again. I saw that a number of people have been asking about how to set up their devices to register DNS addresses in an AD friendly way once they've joined a NAS to an AD domain. There's been a number of responses that suggest that people should add manual records to DNS servers because it's not possible, or that you need to loosen up the AD DNS servers so that they accept unsecured updates. I think I've actually come up with a solution that might remove the need to do any of that and then might actually be easily implemented directly in new firmware editions :-)
All I've done basically is add a shell script (I named it "ads" for simplicity) to the /etc/cron.daily directory with the following;
------------
#!/bin/sh
net ads dns register -P
-----------
That should (theoretically) set up a daily cron job that registers the DNS entries once per day using the credentials Samba already has provided to it. If all goes well, then it should keep DNS registrations up-to-date. I did the same for a CentOS system a while back and it seemed to work.
Is it a simple as that or am I missing something?
Keith
1 Reply
- kejonesTutorHi Folks,
I did some more testing and the shell script seems to run fine and definitely seems to do the job correctly. I'm thinking this would a useful tip so I'm going to add it to the "user submitted tips" board.
Keith
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!