mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4-rpc: dnsserver: Allow . to be specified for @ record
Windows allow both . and @ to be specified with modifying @ record. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10742 Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
a49ba00673
commit
4b4e30b780
@ -1859,7 +1859,9 @@ static WERROR dnsserver_update_record(struct dnsserver_state *dsstate,
|
||||
W_ERROR_HAVE_NO_MEMORY(tmp_ctx);
|
||||
|
||||
/* If node_name is @ or zone name, dns record is @ */
|
||||
if (strcmp(node_name, "@") == 0 || strcasecmp(node_name, z->name) == 0) {
|
||||
if (strcmp(node_name, "@") == 0 ||
|
||||
strcmp(node_name, ".") == 0 ||
|
||||
strcasecmp(node_name, z->name) == 0) {
|
||||
name = talloc_strdup(tmp_ctx, "@");
|
||||
} else {
|
||||
name = dns_split_node_name(tmp_ctx, node_name, z->name);
|
||||
|
Loading…
Reference in New Issue
Block a user