# win\_dns\_record

**URL:** <https://forum.ansible.com/t/win-dns-record/32277>\
**Category:** Ansible Project\
**Created:** [February 19, 2020, 9:11pm UTC](https://forum.ansible.com/t/win-dns-record/32277 "2020-02-19T21:11:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kzersatz](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Post date:** [February 19, 2020, 9:11pm UTC](https://forum.ansible.com/t/win-dns-record/32277/1 "2020-02-19T21:11:39Z")

</div>

OK,

Am I missing something? or is this module requiring you to run it against the DNS server directly?

I know I though powershell normally can define the DNS server I wish to execute against, but this module doesn’t look like I can tweak that any, without adding the feature manually.

How difficult would this be to get a feature added?  
Looking through the .ps1 files, it doesn’t look like it would be difficult, and that honestly, most of it is there already, namely by commenting out the variable below and hard setting it to my preferred whipp–… DNS server.

`  
$dns\_computer\_name = “1.1.1.1”  
#$dnscomputer\_name = $module.Params.computer\_name

`

Ideas?

---

<div class="post-metadata">

**Author:** ![jborean](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/jborean/32/1525_2.png) [@jborean](https://forum.ansible.com/u/jborean)\
**Post date:** [February 19, 2020, 10:46pm UTC](https://forum.ansible.com/t/win-dns-record/32277/2 "2020-02-19T22:46:10Z")

</div>

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](https://docs.ansible.com/ansible/latest/modules/win_dns_record_module.html)

---

<div class="post-metadata">

**Author:** ![kzersatz](https://avatars.discourse-cdn.com/v4/letter/k/7bcc69/32.png) [@kzersatz](https://forum.ansible.com/u/kzersatz)\
**Post date:** [February 20, 2020, 12:38am UTC](https://forum.ansible.com/t/win-dns-record/32277/3 "2020-02-20T00:38:42Z")

</div>

I need to not ansible on no sleep.
