T13nn3s / Invoke-SpfDkimDmarc

PowerShell Module for checking SPF, DKIM and DMARC-record.
https://binsec.nl/powershell-script-for-spf-dmarc-and-dkim-validation/
MIT License
43 stars 8 forks source link

Invoke-SpfDkimDmarc not using -server property #32

Closed tomdhoore closed 1 year ago

tomdhoore commented 1 year ago

Hi, when using the Invoke-SpfDkimDmarc , it seems like the -server parameter is not being used (due to split dns, the invoke-command seems to use the local dns server, eg the get-spfrecord uses the actual external dns server (domain name changed to not disclose too much info)

PS C:\Users\username> invoke-spfdkimdmarc -name hxx.com -server 1.1.1.1

Name : hxx.com SpfRecord : SpfAdvisory : Domain does not have an SPF record. To prevent abuse of this domain, please add an SPF record to it. DmarcRecord : DmarcAdvisory : Does not have a DMARC record. This domain is at risk to being abused by phishers and spammers. DkimRecord : DkimSelector : dkim DkimAdvisory : We couldn't find a DKIM record associated with your domain.

PS C:\Users\username> get-spfrecord -name hxx.com -server 1.1.1.1

Name SPFRecord SPFAdvisory


hxx.com v=spf1 a include:spf.protection.outlook.com -all An SPF-record is configured and the policy is sufficiently strict.

T13nn3s commented 1 year ago

This will be fixed in the next release.