package
Version:
v0.0.0-...-9d62925
Opens a new window with list of versions in this module.
Published: Mar 23, 2023
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BaseRequest makes a DNS over HTTP (DOH) GET request for a specified query
type Answer struct {
Name string `json:"name"`
Type int `json:"type"`
TTL int `json:"TTL"`
Data string `json:"data"`
}
type DNSResponse struct {
Status int `json:"Status"`
TC bool `json:"TC"`
RD bool `json:"RD"`
AD bool `json:"AD"`
CD bool `json:"CD"`
Question []Question `json:"Question"`
Answer []Answer `json:"Answer"`
}
type Question struct {
Name string `json:"name"`
Type int `json:"type"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.