Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS response packets are too long and have truncations that prevent SPF checking #8

Open
yumusb opened this issue Oct 13, 2024 · 0 comments

Comments

@yumusb
Copy link

yumusb commented Oct 13, 2024

package main

import (
	"net"

	"log"

	"github.com/mileusna/spf"
)

func main() {
	spf.DNSServer = "1.1.1.1:53"

	ip := net.ParseIP("173.0.84.2")
	r := spf.CheckHost(ip, "paypal.com", "[email protected]", "")
	log.Println(r)
	spfRecord, _ := spf.LookupSPF("paypal.com")
	log.Println(spfRecord)
}

I tested and found that there is no spf related content in the txt parsed records obtained. But it can be fetched properly using the dig command. Found this issue at google.com and paypal.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant