external help file | Module Name | online version | schema |
---|---|---|---|
DNSHealth-help.xml |
DNSHealth |
2.0.0 |
Reads MX records for domain
Read-MXRecord [-Domain] <String> [<CommonParameters>]
Queries DNS servers to get MX records and returns in PSCustomObject list with Preference and Hostname
Read-MXRecord -Domain gmail.com
Preference Hostname
5 gmail-smtp-in.l.google.com. 10 alt1.gmail-smtp-in.l.google.com. 20 alt2.gmail-smtp-in.l.google.com. 30 alt3.gmail-smtp-in.l.google.com. 40 alt4.gmail-smtp-in.l.google.com.
Domain to query
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.