nrc

package
v5.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	// EnforceOneDotPolicy instructs mustbe.Target* functions to return an error
	// if it looks like the user forgot the trailing dot. This is enforced by
	// the rule, "If a hostname contains any dots (even a single dot), there
	// must be a trailing dot."
	// Use with LabelFromDnsconfigjs() ONLY.
	EnforceOneDotPolicy bool

	// SrvWeirdSplit the last field contains multiple fields.
	// Only for use with NewRecordConfigParse() && rtype=="SRV" && len(args) == 2.
	// Some APIs deliver SRV fields as two strings: "priority" and "weight port hostname."
	// This happens often enough to warrant a flag to handle this case.
	// true: last 2 args are combined and sent to NewRecordConfigParse()
	// Use with NewRecordConfig() ONLY.
	SrvWeirdSplit bool

	// TargetIsFqdnNoDot modifies how RDATA host target fields are parsed.
	// Normally a target host for MX, CNAME, and others, is assumed to be a
	// shortname (no dot) or FQDN (dot). When this flag is set, it is assumed to be a FQDN no matter what.
	// false: ends with ".": FQDN; no dot: shortname.
	// true: ends with ".": FQDN; no dot: FQDN.
	// Use with NewRecordConfig() or NewRecordConfigParse().
	TargetIsFqdnNoDot bool

	// TxtDontParse tells NewRecordConfigParse() that the TXT data is raw bytes, not to be parsed.
	// Use with NewRecordConfig() ONLY.
	TxtDontParse bool
}

Jump to

Keyboard shortcuts

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