record

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package record implements functions to manage DNS records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRecordIP

func CheckRecordIP(zone string, recordIP []string) bool

CheckRecordIP will check is the record IP addresses are up-to-date.

Types

type Record

type Record struct {
	Domain string
	IP     []string
	Type   string
	Zone   string
}

Record is a struct that holds required data and methods to create a DNS record.

func NewRecord

func NewRecord(ip []string, rt string, zone string, domain string) *Record

NewRecord returns a Record struct.

func (*Record) Route53

func (r *Record) Route53() error

Route53 creates a DNS record in Route 53 DNS service.

Jump to

Keyboard shortcuts

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