Skip to content

Commit

Permalink
Updated Examples for Querying DNS records
Browse files Browse the repository at this point in the history
  • Loading branch information
PrzemyslawKlys committed Aug 3, 2020
1 parent a8624f0 commit ea60bc2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Find-MxRecord -DomainName 'evotec.pl', 'evotec.xyz' | Format-Table *
Find-DMARCRecord -DomainName 'evotec.pl', 'evotec.xyz' | Format-Table *
Find-SPFRecord -DomainName 'evotec.pl', 'evotec.xyz' | Format-Table *
Find-DKIMRecord -DomainName 'evotec.pl', 'evotec.xyz' | Format-Table *

Find-DKIMRecord -DomainName 'evotec.pl', 'evotec.xyz' -Selector 'selector1' | Format-Table *

<#
Name Count Preference TTL MX IPAddress
Expand Down
13 changes: 13 additions & 0 deletions Examples/Example-QueryMailRecords-02.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Another way
Import-Module $PSScriptRoot\..\Mailozaurr.psd1 -Force

$Domains = @(
@{ DomainName = 'evotec.pl'; Selector = 'selector1' }
@{ DomainName = 'evotec.xyz'; Selector = 'selector1' }
@{ DomainName = 'microsoft.com'; Selector = 'selector2' }
)

Find-MxRecord -DomainName $Domains | Format-Table *
Find-DMARCRecord -DomainName $Domains | Format-Table *
Find-SPFRecord -DomainName $Domains | Format-Table *
Find-DKIMRecord -DomainName $Domains | Format-Table *

0 comments on commit ea60bc2

Please sign in to comment.