cmd

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type TunnelDNSResolver added in v1.0.1

type TunnelDNSResolver struct {
	// contains filtered or unexported fields
}

TunnelDNSResolver implements a DNS resolver that uses the provided DNS servers inside a MASQUE tunnel.

func (TunnelDNSResolver) Resolve added in v1.0.1

func (r TunnelDNSResolver) Resolve(ctx context.Context, name string) (context.Context, net.IP, error)

Resolve performs a DNS lookup using the provided DNS resolvers. It tries each resolver in order until one succeeds.

Parameters:

  • ctx: context.Context - The context for the DNS lookup.
  • name: string - The domain name to resolve.

Returns:

  • context.Context: The context for the DNS lookup.
  • net.IP: The resolved IP address.
  • error: An error if the lookup fails.

Jump to

Keyboard shortcuts

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