dns

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package dns provides DNS record formatting and display utilities.

This package handles the formatting and display of DNS records required for AhaSend domain verification across different DNS providers and formats:

  • DNS record parsing from AhaSend domain responses
  • Multi-format output (BIND, Cloudflare, Terraform)
  • Interactive DNS configuration instructions
  • Provider-specific formatting and syntax
  • Copy-paste friendly record formats

The package supports common DNS providers and infrastructure-as-code tools, making it easy for users to configure their domains regardless of their DNS setup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatDNSRecordForProvider

func FormatDNSRecordForProvider(record DNSRecord, provider string) string

FormatDNSRecordForProvider formats a DNS record for a specific provider

func PrintDNSInstructions

func PrintDNSInstructions(recordSet *DNSRecordSet)

PrintDNSInstructions prints DNS configuration instructions

Types

type DNSRecord

type DNSRecord struct {
	Type     string
	Name     string
	Value    string
	Priority int
	TTL      int
}

DNSRecord represents a DNS record with formatting options

type DNSRecordSet

type DNSRecordSet struct {
	Domain  string
	Records []DNSRecord
}

DNSRecordSet represents a collection of DNS records for a domain

func FormatDNSRecords

func FormatDNSRecords(domain *responses.Domain) *DNSRecordSet

FormatDNSRecords formats DNS records for display

Jump to

Keyboard shortcuts

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