Skip to content

Question regarding correct behaviour for a domain with no TXT records #3

@ttacon

Description

@ttacon

When requesting the SPF records for a given domain that doesn't have any TXT records, I get back a PermError. Looking at the documentation for CheckIP (https://godoc.org/github.com/gopistolet/gospf#SPF.CheckIP) where the error codes are stated (albeit this documentation is for CheckIP and not New), I was wondering if when querying a domain that didn't have any TXT records it would be more appropriate, with respect to the RFC, to return None instead of PermError?

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions