dns64

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPrefix = "64:ff9b::/96"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS64

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

func NewDNS64

func NewDNS64(opts ...Option) (*DNS64, error)

func (*DNS64) To6

func (d *DNS64) To6(addr net.IP) (net.IP, error)

To6 takes a prefix and IPv4 address and returns an IPv6 address according to RFC 6052.

type Option

type Option func(*DNS64) error

func WithPrefix

func WithPrefix(addr string) Option

Jump to

Keyboard shortcuts

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