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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| adapter_names | []string | yes | IP-enabled adapter names or wildcard patterns | |
| dns_servers | []string | yes | Ordered DNS addresses; empty restores DHCP DNS | |
| suffix_search_list | []string | Optional global ordered DNS suffix list | ||
| log_path | string | Optional diagnostic log file on the target |
Example
yaml
- name: Restore DHCP DNS
ansible.windows.win_dns_client:
adapter_names: [Ethernet]
dns_servers: []