dns

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDNS

func EnsureDNS(api *cloudflare.API, zoneID, domainName string) error

EnsureDNS updates the A record if it does not point to the current IP address

func GetCurrentIP

func GetCurrentIP() (string, error)

Fetches the current external IP address

func GetDomainARecords

func GetDomainARecords(api *cloudflare.API, zoneID, domainName string) (records []cloudflare.DNSRecord, err error)

GetDomainARecords fetches all A records for a given domain.

func InitCFAPI

func InitCFAPI(apiToken string) (*cloudflare.API, error)

InitCFAPI intializes Cloudflare API with the given API token

Types

This section is empty.

Jump to

Keyboard shortcuts

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