Skip to content

FindDOHEndpoint() for an arbitrary name parameter should fallback to query the _dns.<zone of name> ie closest SOA #63

@adam-burns

Description

@adam-burns

If there is no _dns subdomain for the submitted name parameter, then _dns. (where zone is the closest name to the param with SOA record) should also be queried for an SVCB record.

if answer.Answer < 1, the Ns array already contains an array member that is the SOA record of the passed parameter

if len(answer.Answer) < 1 {
spew.Dump(answer)
return nil, fmt.Errorf("findDOHEndpoint: no answer section for %s", lookup)
}

Metadata

Metadata

Assignees

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