summaryrefslogtreecommitdiff
path: root/source3/libaddns
diff options
context:
space:
mode:
authorGerald (Jerry) Carter <jerry@samba.org>2008-10-03 10:51:21 -0500
committerGerald (Jerry) Carter <jerry@samba.org>2008-10-03 10:51:21 -0500
commit8e1d93e6a692676744c267dfd0d95802ff036a5f (patch)
tree6dd5199bd7697ff4ac66707c6e4d419459648a19 /source3/libaddns
parent63e908e4b4b07455e14ac04d8efb3c4a3d043692 (diff)
downloadsamba-8e1d93e6a692676744c267dfd0d95802ff036a5f.tar.gz
samba-8e1d93e6a692676744c267dfd0d95802ff036a5f.tar.bz2
samba-8e1d93e6a692676744c267dfd0d95802ff036a5f.zip
libaddns: Use the same prerequisite for DDNS update as Windows XP.
Hostname, TYPE: CNAME, CLASS: NONE This has to have been broken for ages. I cannot see how it would have worked in any environment.
Diffstat (limited to 'source3/libaddns')
-rw-r--r--source3/libaddns/dnsrecord.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libaddns/dnsrecord.c b/source3/libaddns/dnsrecord.c
index 500cbd6681..559c2644d4 100644
--- a/source3/libaddns/dnsrecord.c
+++ b/source3/libaddns/dnsrecord.c
@@ -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;