]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libaddns: Use the same prerequisite for DDNS update as Windows XP.
authorGerald (Jerry) Carter <jerry@samba.org>
Fri, 3 Oct 2008 15:51:21 +0000 (10:51 -0500)
committerGerald (Jerry) Carter <jerry@samba.org>
Fri, 3 Oct 2008 16:01:11 +0000 (11:01 -0500)
   Hostname, TYPE: CNAME, CLASS: NONE

This has to have been broken for ages.  I cannot see
how it would have worked in any environment.
(cherry picked from commit 6b6402bce318a48b0890ed6fc23ed5b30440927b)

source/libaddns/dnsrecord.c

index 500cbd6681a41ad2c1cd4211daabe6c3d744acef..559c2644d44a1ef3d5fb37b4797184d80e446cd0 100644 (file)
@@ -378,10 +378,10 @@ DNS_ERROR dns_create_update_request(TALLOC_CTX *mem_ctx,
        if (!ERR_DNS_IS_OK(err)) return err;
 
        /*
-        * The zone must be used at all
+        * Use the same prereq as WinXP -- No CNAME records for this host.
         */
 
-       err = dns_create_rrec(req, domainname, QTYPE_ANY, DNS_CLASS_ANY,
+       err = dns_create_rrec(req, hostname, QTYPE_CNAME, DNS_CLASS_NONE,
                              0, 0, NULL, &rec);
        if (!ERR_DNS_IS_OK(err)) goto error;