PARALLAX

win_dns_client

Configure Windows adapter DNS servers and global suffixes

Collection: ansible.windows

Full Name: parallax.windows.win_dns_client

Aliases: ansible.windows.win_dns_client, win_dns_client

Synopsis

Configure Windows adapter DNS servers and global suffixes

Parameters

NameTypeRequiredDefaultDescription
adapter_names[]stringyesIP-enabled adapter names or wildcard patterns
dns_servers[]stringyesOrdered DNS addresses; empty restores DHCP DNS
suffix_search_list[]stringOptional global ordered DNS suffix list
log_pathstringOptional diagnostic log file on the target

Example

yaml
- name: Restore DHCP DNS
  ansible.windows.win_dns_client:
    adapter_names: [Ethernet]
    dns_servers: []
Search
    ↑ ↓ move↵ openesc close