summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/samba_dnsupdate
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin/samba_dnsupdate')
-rwxr-xr-xsource4/scripting/bin/samba_dnsupdate7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index a8a7e591c6..072f818a5d 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -380,7 +380,12 @@ get_credentials(lp)
# ask nsupdate to add entries as needed
for d in update_list:
if am_rodc:
- call_rodc_update(d)
+ if d.name.lower() == domain.lower():
+ continue
+ if d.type != 'A':
+ call_rodc_update(d)
+ else:
+ call_nsupdate(d)
else:
call_nsupdate(d)