resolver

package
v0.0.0-...-8fa2440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 11, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirectedQuery

func DirectedQuery(servers []string, rd bool, q dns.Question, ctx context.Context) (*dns.Msg, error)

func FindZoneApex

func FindZoneApex(name string, ctx context.Context) (apex string, zoneSOA *dns.SOA, err error)

Given a domain name, find the apex for the zone enclosing the name. e.g. if example.com. is a zone, and "www.example.com." is not delegated, given "www.example.com.", returns "example.com." If a zone SOA was found during the process, return that too (not guaranteed).

func LookupSOA

func LookupSOA(name string, ctx context.Context) (*dns.SOA, error)

func Query

func Query(q dns.Question, ctx context.Context) (*dns.Msg, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL