win_dns_record – Manage Windows Server DNS records¶
New in version 2.8.
Requirements¶
The below requirements are needed on the host that executes this module.
- This module requires Windows 8, Server 2012, or newer.
Parameters¶
Examples¶
- name: Create database server alias
  win_dns_record:
    name: "db1"
    type: "CNAME"
    value: "cgyl1404p.amer.example.com"
    zone: "amer.example.com"
- name: PTR example
  win_dns_record:
    name: "1.1.1"
    type: "PTR"
    value: "db1"
    zone: "10.in-addr.arpa"
- name: Remove static record
  win_dns_record:
    name: "db1"
    type: "A"
    state: absent
    zone: "amer.example.com"
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- John Nelson (@johnboy2)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
