Module for configuring DNS Client on Windows systems
salt.states.win_dns_client.
dns_dhcp
(name, interface='Local Area Connection')¶Configure the DNS server list from DHCP Server
salt.states.win_dns_client.
dns_exists
(name, servers=None, interface='Local Area Connection', replace=False)¶Configure the DNS server list in the specified interface
Example:
config_dns_servers:
win_dns_client.dns_exists:
- replace: True #remove any servers not in the "servers" list, default is False
- servers:
- 8.8.8.8
- 8.8.8.9
salt.states.win_dns_client.
primary_suffix
(name, suffix=None, updates=False)¶New in version 2014.7.0.
Configure the global primary DNS suffix of a DHCP client.
primary_dns_suffix:
win_dns_client.primary_suffix:
- suffix: sub.domain.tld
- updates: True