dnsname

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dnsname canonicalizes absolute DNS owner names for policy decisions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidName reports a relative, malformed, or overlong DNS name.
	ErrInvalidName = errors.New("dns name: invalid absolute name")
)

Functions

This section is empty.

Types

type Name

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

Name is a canonical absolute DNS name.

func Parse

func Parse(input string) (Name, error)

Parse canonicalizes an absolute DNS presentation name.

func (Name) HasLiteralWildcard

func (n Name) HasLiteralWildcard() bool

HasLiteralWildcard reports whether any complete owner-name label is "*".

func (Name) String

func (n Name) String() string

String returns the canonical absolute presentation name.

func (Name) Within

func (n Name) Within(zone Name) bool

Within reports whether n is the zone apex or one of its descendants.

Jump to

Keyboard shortcuts

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