Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- func (client *Client) A(query string) (*DOHResponse, error)
- func (client *Client) AAAA(query string) (*DOHResponse, error)
- func (client *Client) CNAME(query string) (*DOHResponse, error)
- func (client *Client) MX(query string) (*DOHResponse, error)
- func (client *Client) NS(query string) (*DOHResponse, error)
- func (client *Client) PTR(query string) (*DOHResponse, error)
- func (client *Client) Query(recordType Record, query string) (*DOHResponse, error)
- func (client *Client) SOA(query string) (*DOHResponse, error)
- func (client *Client) TXT(query string) (*DOHResponse, error)
- type DOHAnswer
- type DOHError
- type DOHQuestion
- type DOHResponse
- type Record
Constants ¶
View Source
const DOH_ENDPOINT string = "https://cloudflare-dns.com/dns-query"
Variables ¶
View Source
var ErrEmptyResponse = errors.New("empty response")
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
HTTP *resty.Client
}
type DOHQuestion ¶
type DOHResponse ¶
Click to show internal directories.
Click to hide internal directories.