Skip to content

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

Description

@yumusb
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", "service@paypal.com", "")
	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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions