external help file | Module Name | online version | schema |
---|---|---|---|
DNSHealth-help.xml |
DNSHealth |
2.0.0 |
Reads SPF record for specified domain
Read-SpfRecord -Domain <String> [-Level <String>] [-ExpectedInclude <String>] [<CommonParameters>]
Read-SpfRecord [-Domain <String>] -Record <String> [-Level <String>] [-ExpectedInclude <String>]
[<CommonParameters>]
Uses Get-GoogleDNSQuery to obtain TXT records for domain, searching for v=spf1 at the beginning of the record Also parses include records and obtains their SPF as well
Read-SpfRecord -Domain gmail.com
Domain : gmail.com
Record : v=spf1 redirect=_spf.google.com
RecordCount : 1
LookupCount : 4
AllMechanism : ~
ValidationPasses : {Expected SPF record was included, No PermError detected in SPF record}
ValidationWarns : {}
ValidationFails : {SPF record should end in -all to prevent spamming}
RecordList : {@{Domain=_spf.google.com; Record=v=spf1 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com all; RecordCount=1; LookupCount=4; AllMechanism=; ValidationPasses=System.Collections.ArrayList; ValidationWarns=System.Collections.ArrayList; ValidationFails=System.Collections.ArrayList; RecordList=System.Collections.ArrayList; TypeLookups=System.Collections.ArrayList; IPAddresses=System.Collections.ArrayList; PermError=False}}
TypeLookups : {}
IPAddresses : {}
PermError : False
Domain to obtain SPF record for
Type: String
Parameter Sets: Lookup
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Type: String
Parameter Sets: Manual
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Record Description }}
Type: String
Parameter Sets: Manual
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill Level Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: Parent
Accept pipeline input: False
Accept wildcard characters: False
{{ Fill ExpectedInclude Description }}
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
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.
Author: John Duprey