Going by that snippet you should be setting the module option 'computer_name', it's even documented in it's docs that computer_name is [1]
Specifies a DNS server. > You can specify an IP address or any value that resolves to an IP address, > such as a fully qualified domain name (FQDN), host name, or NETBIOS name. > [1] - https://docs.ansible.com/ansible/latest/modules/win_dns_record_module.html -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/39e6552e-adc8-4d95-b878-b2375e837ff5%40googlegroups.com.
