Sets the DNS configuration for all systems managed by SDDC Manager.
Set-VCFConfigurationDNS [-json] <String> [-validate] [<CommonParameters>]
The Set-VCFConfigurationDNS
cmdlet sets the DNS configuration for all systems managed by SDDC Manager.
Set-VCFConfigurationDNS -json (Get-Content -Raw .\samples\dns-ntp\dnsSpec.json)
This example shows how to set the DNS configuration for all systems managed by SDDC Manager using a JSON specification file.
???+ example "Sample JSON: DNS Configuration"
```json
--8<-- "./samples/dns-ntp/dnsSpec.json"
```
Set-VCFConfigurationDNS -json (Get-Content -Raw .\samples\dns-ntp\dnsSpec.json) -validate
This example shows how to validate the DNS configuration.
Specifies the JSON specification to be used.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies to validate the JSON specification file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.