publicdns

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package publicdns contains mapping and helpers for working with public DNS providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHIPsOfBase

func DoHIPsOfBase() map[string][]netip.Addr

DoHIPsOfBase returns a map of DNS server IP addresses keyed by their DoH URL. It is the inverse of KnownDoH.

func DoHV6

func DoHV6(base string) (ip netip.Addr, ok bool)

DoHV6 returns the first IPv6 DNS address from a given public DNS provider if found, along with a boolean indicating success.

func KnownDoH

func KnownDoH() map[netip.Addr]string

KnownDoH returns a map of well-known public DNS IPs to their DoH URL. The returned map should not be modified.

Types

This section is empty.

Jump to

Keyboard shortcuts

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