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
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-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
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-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
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Outputs

Microsoft.Online.Administration.DomainRecord

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