dot

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 7 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Package dot provides some known DNS-over-TLS (DOT) resolvers.

See documentation for details: https://pkg.go.dev/github.com/artyom/dot

Documentation

Overview

Package dot provides some known DNS-over-TLS (DOT) resolvers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cloudflare

func Cloudflare() *net.Resolver

Cloudflare returns Resolver that uses Cloudflare service on 1.1.1.1 and 1.0.0.1 on port 853.

See https://developers.cloudflare.com/1.1.1.1/dns-over-tls/ for details.

func Google added in v1.1.0

func Google() *net.Resolver

Google returns Resolver that uses Google Public DNS service on 8.8.8.8 and 8.8.4.4 on port 853.

See https://developers.google.com/speed/public-dns/ for details.

func LibreOps added in v1.2.0

func LibreOps() *net.Resolver

LibreOps returns Resolver that uses LibreDNS service on 116.202.176.26 on port 853 operated by LibreOps.

See https://libredns.gr/ for details.

func New added in v1.3.0

func New(serverName string, addrs ...string) (*net.Resolver, error)

New creates and returns a new DNS-over-TLS (DoT) Resolver.

It takes a server name for TLS verification and one or more IP:port addresses of DoT servers.

The returned Resolver uses a random selection of the provided addresses for each DNS query.

Example:

googlePublic, err := dot.New("dns.google", "8.8.8.8:853", "8.8.4.4:853")

func Quad9

func Quad9() *net.Resolver

Quad9 returns Resolver that uses Quad9 service on 9.9.9.9 and 149.112.112.112 on port 853.

See https://quad9.net/faq/ for details.

Types

This section is empty.

Jump to

Keyboard shortcuts

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