mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
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.
This commit is contained in:
parent
63e908e4b4
commit
8e1d93e6a6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user