dns

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package dns manages explicit DDNS RRsets and the optional SmartDNS service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureSmartDNS

func ConfigureSmartDNS(ctx context.Context, p protocol.DNSPolicy, runner host.Runner) error

func Provider

func Provider(p protocol.Provider) (any, error)

func ResolverReady

func ResolverReady(ctx context.Context) error

ResolverReady probes actual DNS replies over TCP and UDP on both loopback families.

func SmartConfig

func SmartConfig(ctx context.Context, p protocol.DNSPolicy) ([]byte, error)

Types

type Result

type Result struct {
	ID      string    `json:"id"`
	IPv4    string    `json:"ipv4,omitempty"`
	IPv6    string    `json:"ipv6,omitempty"`
	Updated time.Time `json:"updated"`
	Error   string    `json:"error,omitempty"`
}

func DDNS

func DDNS(ctx context.Context, j protocol.DDNSJob, p any, client *http.Client) (Result, error)

type Setter

type Setter interface {
	SetRecords(context.Context, string, []libdns.Record) ([]libdns.Record, error)
}

Jump to

Keyboard shortcuts

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