Movatterモバイル変換


[0]ホーム

URL:


publicdns

package
v1.92.3Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License:BSD-3-ClauseImports:12Imported by:6

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package publicdns contains mapping and helpers for working withpublic DNS providers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcDoHEndpointFromIPadded inv1.32.0

func DoHEndpointFromIP(ipnetip.Addr) (dohBasestring, dohOnlybool, okbool)

DoHEndpointFromIP returns the DNS-over-HTTPS base URL for a given IPand whether it's DoH-only (not speaking DNS on port 53).

The ok result is whether the IP is a known DNS server.

funcDoHIPsOfBase

func DoHIPsOfBase(dohBasestring) []netip.Addr

DoHIPsOfBase returns the IP addresses to use to dial the provided DoH baseURL.

It is basically the inverse of DoHEndpointFromIP with the exception that forNextDNS it returns IPv4 addresses that DoHEndpointFromIP doesn't map back.

funcDoHV6

func DoHV6(basestring) (ipnetip.Addr, okbool)

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

funcIPIsDoHOnlyServeradded inv1.32.0

func IPIsDoHOnlyServer(ipnetip.Addr)bool

IPIsDoHOnlyServer reports whether ip is a DNS server that should only useDNS-over-HTTPS (not regular port 53 DNS).

funcKnownDoHPrefixesadded inv1.32.0

func KnownDoHPrefixes() []string

KnownDoHPrefixes returns the list of DoH base URLs.

It returns a new copy each time, sorted. It's meant for tests.

It does not include providers that have customer-specific DoH URLs likeNextDNS.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp