utils

package
v0.0.0-...-1711327 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveRecordName

func ResolveRecordName(name, zone string) string

ResolveRecordName expands shortened record names relative to the provided zone

The name "" is equivalent to "@"

- ("@", "example.com.") -> "example.com." - ("ns1", "example.com.") -> "ns1.example.com." - ("ns2.example.com.", "example.org.") -> "ns2.example.com." - ("ns3", "") -> "ns3."

func SimplifyRecordName

func SimplifyRecordName(name, zone string) string

SimplifyRecordName shortens the record name relative to the provided zone

- ("example.com.", "example.com.") -> "@" - ("ns1.example.com.", "example.com.") -> "ns1" - ("ns2.example.com.", "example.org.") -> "ns2.example.com."

Types

This section is empty.

Jump to

Keyboard shortcuts

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