s4-dns: send A record updates via TKEY
authorAndrew Tridgell <tridge@samba.org>
Thu, 30 Sep 2010 00:33:49 +0000 (17:33 -0700)
committerAndrew Tridgell <tridge@samba.org>
Thu, 30 Sep 2010 00:59:16 +0000 (00:59 +0000)
source4/scripting/bin/samba_dnsupdate

index a8a7e591c687598b59054ff7dab3b9c0eb15a088..072f818a5dc680d203e5e452c9c96eaa19b19025 100755 (executable)
@@ -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)