config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package config provides configuration structures for DNSSEC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTrustAnchor

func ParseTrustAnchor(base64RDATA string) (packet.DNSRecord, error)

ParseTrustAnchor parses a base64-encoded DNSKEY RDATA into a DNSRecord.

Types

type DNSSECConfig

type DNSSECConfig struct {
	// Mode controls validation behavior: "disabled", "ad-bit-only", or "strict"
	Mode string
	// TrustAnchors maps zone name to base64-encoded DNSKEY RDATA.
	// The RDATA format is: flags(2) + protocol(1) + algorithm(1) + publickey
	TrustAnchors map[string]string
}

DNSSECConfig holds DNSSEC validation settings including trust anchors.

func (*DNSSECConfig) ToMap

func (c *DNSSECConfig) ToMap() (map[string]packet.DNSRecord, error)

ToMap converts DNSSECConfig.TrustAnchors to a map of zone -> parsed DNSRecord.

Jump to

Keyboard shortcuts

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