|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: New-NcNetDns
NAME
New-NcNetDns
SYNOPSIS
Creates DNS configuration for a vserver.
SYNTAX
New-NcNetDns [-Domains] <String[]> [[-NameServers] <String[]>] [-State <Stri
ng>] [-TimeoutSeconds <Int32>] [-Attempts <Int32>] [-VserverContext <String>
] [-Controller <NcController[]>] [<CommonParameters>]
DESCRIPTION
Creates DNS configuration for a vserver.
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? true
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'.
Default is 'enabled'.
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. Default is two seconds.
Required? false
Position? named
Default value 2
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Attempts <Int32>
Max number of trials before giving up and returning error. Default is o
ne.
Required? false
Position? named
Default value 1
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-create
Family: vserver
-------------- Example 1 --------------
C:\PS>New-NcNetDns -Domains sea-tm.netapp.com -NameServers 10.58.88.21, 10.5
8.88.22
Configure DNS on the currently connected vserver.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Knight02 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
-------------- Example 2 --------------
C:\PS>New-NcNetDns -Domains sea-tm.netapp.com -NameServers 10.58.88.21, 10.5
8.88.22 -VserverContext Knight02
While connected to the cluster context, configure DNS on vserver 'Knight02'.
Vserver DnsState Domains NameServers
------- -------- ------- -----------
Knight02 enabled {sea-tm.netapp.com} {10.58.88.21, 10.58.88.22}
-------------- Example 3 --------------
C:\PS>Get-NcNetDns Knight01 | New-NcNetDns -VserverContext Knight02
Duplicate 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}
RELATED LINKS
Get-NcNetDns
Set-NcNetDns
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|