util

package
v0.0.0-...-e99a25f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExistsUpstream

func ExistsUpstream(domain string) bool

ExistsUpstream checks if there is a valid A, AAAA or CNAME record in the upstream DNS zone

func GetA

func GetA(domain string) (certainly.UpstreamNSRecord, error)

GetA fetches the A records for a domain

func GetAAAA

func GetAAAA(domain string) (certainly.UpstreamNSRecord, error)

GetA fetches the AAAA record for a domain

func GetCNAME

func GetCNAME(domain string) (certainly.UpstreamNSRecord, error)

GetCNAME fetches the CNAME record for a domain

func HasApexDomain

func HasApexDomain(target, apex string) bool

func ReplaceApex

func ReplaceApex(target string, rewrites map[string]string) string

func ShouldRewrite

func ShouldRewrite(target string, rewrites map[string]string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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