dnsrr

package
v4.33.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RRtoRC

func RRtoRC(rr dnsv1.RR, origin string) (models.RecordConfig, error)

RRtoRC converts dns.RR to models.RecordConfig

func RRtoRCTxtBug

func RRtoRCTxtBug(rr dnsv1.RR, origin string) (models.RecordConfig, error)

RRtoRCTxtBug converts dns.RR to models.RecordConfig. Compensates for the backslash bug in github.com/miekg/dns/issues/1384.

func RRv1tov2 added in v4.33.0

func RRv1tov2(rrv1 dnsv1.RR) dnsv2.RR

RRv1tov2 converts github.com/miekg/dns (v1) RR to codeberg.org/miekg/dns (v2) RR. Typically used in providers that still use v1. Note: this function is not efficient. It converts via string representation. Use it until you are able to convert to v2 fully. Note: Panics on error.

func RRv2tov1 added in v4.33.0

func RRv2tov1(rrv2 dnsv2.RR) dnsv1.RR

RRv2tov1 converts codeberg.org/miekg/dns (v2) RR to github.com/miekg/dns (v1) RR. Typically used in providers that still use v1. Note: this function is not efficient. It converts via string representation. Use it until you are able to convert to v1 fully. Note: Panics on error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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