mxcheck
mxcheck copied to clipboard
CNAME DMARC not working
Describe the bug When checking a domain with a CNAME'd There is a Go Panic regarding
To Reproduce Check a domain with a CNAME'd DMARC record Can be created using: https://mxtoolbox.com/dmarc/dmarc-setup-cname
Expected behavior DMARC report :-D
Screenshots user@server:~$ mxcheck -n -s < REDACTED >.nl -S default
INFO: 2024/05/14 15:24:50 == Checking: < REDACTED >.nl == INFO: 2024/05/14 15:24:50 Found MX: INFO: 2024/05/14 15:24:50 < REDACTED >-nl.mail.protection.outlook.com. INFO: 2024/05/14 15:24:50 == Checking DKIM record == INFO: 2024/05/14 15:24:50 DKIM not set or wrong selector INFO: 2024/05/14 15:24:50 == Checking DMARC record == panic: interface conversion: dns.RR is *dns.CNAME, not *dns.TXT
goroutine 1 [running]: main.getDMARC({0x7fff3566f5fd?, 0xc0000c95d8?}, {0x70ad2f, 0x7}) /home/user/go/pkg/mod/github.com/steffenfritz/[email protected]/dns.go:245 +0x3cc main.main() /home/user/go/pkg/mod/github.com/steffenfritz/[email protected]/main.go:167 +0xd56
System (please complete the following information):
- OS: Ubuntu
- Version 22.04