Get-MsolDomainVerificationDns

Gets DNS records necessary to verify a domain.

Syntax

Get-MsolDomainVerificationDns -DomainName <String> [-Mode <DomainVerificationMode>] [-TenantId <Guid>]
 [<CommonParameters>]

Description

The Get-MsolDomainVerificationDns cmdlet gets the DNS records that need to be set to verify a domain.

Examples

Example 1: Get DNS records that need to be set verify ownership of a domain

PS C:\> Get-MsolDomainVerificationDNS -DomainName "contoso.com"
This command gets the DNS records that need to be set in order to verify ownership of contoso.com.

Parameters

-DomainName

Specifies the fully qualified domain name to retrieve.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-Mode

Specifies the domain verification mode to use when verifying this domain.
Valid values are: DnsMXRecord and DnsTxtRecord.

Type:DomainVerificationMode
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-TenantId

Specifies the unique ID of the tenant on which to perform the operation.
The default value is the tenant of the current user.
This parameter applies only to partner users.

Type:Guid
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

Outputs

Microsoft.Online.Administration.DomainRecord

This cmdlet returns details about the DNS records required to verify a domain.