共用方式為


Register-CustomDnsServer

概要

用來向 Azure Stack Hub DNS 註冊自訂 DNS 伺服器的指令碼。 此指令碼會在 Azure Stack Hub DNS 中建立條件式轉送。

語法

Register-CustomDnsServer [[-TimeoutInSecs] <Object>] [[-CustomDomainName] <Object>]
 [[-CustomDnsIPAddresses] <Object>] [-AsJob]

描述

用來向 Azure Stack DNS 註冊自訂 DNS 伺服器的指令碼。 此指令碼會在 Azure Stack DNS 中建立條件式轉送

範例

範例 1

Register-CustomDnsServer -CustomDomainName "contoso.com" -CustomDnsIPAddresses "10.20.20.01","10.20.20.02" -TimeoutInSecs 1000

參數

-CustomDomainName

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CustomDnsIPAddresses

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TimeoutInSecs

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: 1000
Accept pipeline input: False
Accept wildcard characters: False

-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

後續步驟

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點