domainhiding

package
v0.0.0-...-9d62925 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Based on https://github.com/ahhh/godns (No license)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseRequest

func BaseRequest(server, query, qtype string, insecureSkipVerify bool) (string, error)

BaseRequest makes a DNS over HTTP (DOH) GET request for a specified query

func QueryESNIKeysForHostDoH

func QueryESNIKeysForHostDoH(hostname string, insecureSkipVerify bool) ([]byte, error)

Types

type Answer

type Answer struct {
	Name string `json:"name"`
	Type int    `json:"type"`
	TTL  int    `json:"TTL"`
	Data string `json:"data"`
}

type DNSResponse

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

type Question struct {
	Name string `json:"name"`
	Type int    `json:"type"`
}

Jump to

Keyboard shortcuts

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