|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NcNetDns
NAME
Set-NcNetDns
SYNOPSIS
Modify the DNS configuration of the specified vserver.
SYNTAX
Set-NcNetDns [[-Domains] <String[]>] [[-NameServers] <String[]>] [-State <St
ring>] [-TimeoutSeconds <Int32>] [-Attempts <Int32>] [-VserverContext <Strin
g>] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Modify the DNS configuration of the specified vserver. Omitted (optional) f
ields will not be changed.
PARAMETERS
-Domains <String[]>
List of DNS domains such as 'sales.bar.com'. The first domain is the on
e that the vserver belongs to.
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-NameServers <String[]>
IPv4 addresses of name servers such as '123.123.123.123'.
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-State <String>
Specifies whether DNS configuration should be 'enabled' or 'disabled'.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-TimeoutSeconds <Int32>
Number of seconds to wait for a response from a name server before tryin
g a different name server.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attempts <Int32>
Max number of trials before giving up and returning error.
Required? false
Position? named
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-VserverContext <String>
Vserver to which to direct this command. If the currently connected con
troller (as embodied by an NcController object) represents a cluster, th
ere are multiple means to address commands to one of its vservers. Eith
er set the Vserver field on the NcController object to direct all subseq
uent commands to that vserver, or supply the VserverContext parameter to
an individual cmdlet. Only cmdlets which may be invoked on vservers of
fer the VserverContext parameter.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Controller <NcController[]>
A clustered Data ONTAP controller to receive this cmdlet, as embodied by
an NcController object. This parameter is returned by the Connect-NcCo
ntroller cmdlet. If not specified, the value in the global variable Cur
rentNcController is used. In the latter case, if CurrentNcController co
ntains a collection of NcController objects, this cmdlet is invoked on e
ach controller in succession.
Required? false
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".
INPUTS
OUTPUTS
DataONTAP.C.Types.Net.NetDnsInfo
NOTES
Category: net
API: net-dns-modify
Family: vserver
-------------- Example 1 --------------
C:\PS>Set-NcNetDns -State disabled -VserverContext Knight02
Disable the DNS configuration on vserver 'knight02'.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Knight02 disabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
-------------- Example 2 --------------
C:\PS>Get-NcNetDns Knight01 | Set-NcNetDns -VserverContext Knight02
Copy DNS configuration from vserver 'Knight01' to vserver 'Knight02'.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Knight02 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
-------------- Example 3 --------------
C:\PS>Set-NcNetDns -NameServers ""
Remove the name server list from the DNS configuration of the current vserve
r.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Knight02 enabled {sea-tm.netapp.com}
RELATED LINKS
Get-NcNetDns
New-NcNetDns
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|