Skip to content

Set-VCFConfigurationDNS

Synopsis

Sets the DNS configuration for all systems managed by SDDC Manager.

Syntax

Set-VCFConfigurationDNS [-json] <String> [-validate] [<CommonParameters>]

Description

The Set-VCFConfigurationDNS cmdlet sets the DNS configuration for all systems managed by SDDC Manager.

Examples

Example 1

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.

Sample JSON: DNS Configuration
{
   "dnsServers": [
       {
            "ipAddress": "172.16.11.4",
            "isPrimary": true
       },
       {
            "ipAddress": "172.16.11.5",
            "isPrimary": false
        }    
    ]
}

Example 2

Set-VCFConfigurationDNS -json (Get-Content -Raw .\samples\dns-ntp\dnsSpec.json) -validate

This example shows how to validate the DNS configuration.

Parameters

-json

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

-validate

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

Common Parameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.