s4-dns: fixed CNAME automatic DNS updates
authorAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 06:09:51 +0000 (17:09 +1100)
committerAndrew Tridgell <tridge@samba.org>
Fri, 26 Feb 2010 07:19:27 +0000 (18:19 +1100)
source4/scripting/bin/samba_dnsupdate

index 9a90eac9dcfe536ba0648e98214042600aad16bd..9eaf3df272fa2ef38577c73a5a8f0540dada6f5e 100755 (executable)
@@ -199,7 +199,7 @@ def call_nsupdate(d):
                                                            d.existing_port, d.dest))
         f.write("update add %s %u SRV 0 100 %s %s\n" % (d.name, default_ttl, d.port, d.dest))
     if d.type == "CNAME":
-        f.write("update add %s %u SRV %s\n" % (d.name, default_ttl, d.dest))
+        f.write("update add %s %u CNAME %s\n" % (d.name, default_ttl, d.dest))
     if opts.verbose:
         f.write("show\n")
     f.write("send\n")