Discover Packages
github.com/moriai/dnss
internal
httpresolver
package
Version:
v0.0.0-...-7bc2641
Opens a new window with list of versions in this module.
Published: Feb 16, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
New creates a new HTTPS resolver, which uses the given upstream URL to
resolve queries. It will auto-detect the mode (JSON or DoH) by doing a
resolution at initialization time.
func NewDoH(upstream *url .URL , caFile string ) *httpsResolver
NewDoH creates a new DoH resolver, which uses the given upstream
URL to resolve queries.
func NewJSON(upstream *url .URL , caFile string ) *httpsResolver
NewJSON creates a new JSON resolver which uses the given upstream URL to
resolve queries.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.