Resolve-SPFRecord
Synopsis
Section titled “Synopsis”Returns a list of all IP addresses from an SPF record.
Syntax
Section titled “Syntax”Resolve-SPFRecord [-Name] <String> [[-Server] <String>] [-Referrer <String>] [-Visited <String[]>] [-ProgressAction <ActionPreference>] [<CommonParameters>]Description
Section titled “Description”A function to resolve and parse SPF records for a given domain name.
Supported SPF directives and functions include:
- mx
- a
- ip4 und ip6
- redirect
- Warning for too many include entries
Not supported:
- explanation
- macros
Examples
Section titled “Examples”Example 1
Section titled “Example 1”Resolve-SPFRecord microsoft.comResolves the SPF record for the domain “microsoft.com” using the default DNS server.
Example 2
Section titled “Example 2”Resolve-SPFRecord -Name microsoft.com -Server 1.1.1.1Resolves the SPF record for the domain “microsoft.com” using the specified DNS server.
Parameters
Section titled “Parameters”The domain name to resolve the SPF record for.
Type: StringParameter Sets: (All)Aliases:
Required: TruePosition: 2Default value: NoneAccept pipeline input: True (ByPropertyName, ByValue)Accept wildcard characters: False-Server
Section titled “-Server”The DNS server to use for the query. If not specified, the system’s default DNS server will be used.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: 3Default value: NoneAccept pipeline input: True (ByPropertyName)Accept wildcard characters: False-Referrer
Section titled “-Referrer”Provide a referrer to build valid objects during recursive calls of the function.
Type: StringParameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: False-Visited
Section titled “-Visited”Track visited domains to prevent circular references during recursive calls of the function.
Type: String[]Parameter Sets: (All)Aliases:
Required: FalsePosition: NamedDefault value: @()Accept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.