-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
295 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package abstract | ||
import "github.com/miekg/dns" | ||
|
||
type Backend interface { | ||
// Lookup all resource records having a given fully-qualified owner name, | ||
// regardless of type or class. Returns a slice of all those resource records | ||
// or an error. | ||
// | ||
// The returned slice may contain both authoritative and non-authoritative records | ||
// (for example, NS records for delegations and glue records.) | ||
// | ||
// The existence of wildcard records will be determined by doing a lookup for a name | ||
// like "*.example.com", so there is no need to process the wildcard logic other than | ||
// to make sure such a lookup functions correctly. | ||
Lookup(qname string) (rrs []dns.RR, err error) | ||
} |
Oops, something went wrong.