nameservers

package
v4.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package nameservers provides logic for dynamically finding nameservers for a domain, and configuring NS records for them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNSRecords

func AddNSRecords(dc *models.DomainConfig)

AddNSRecords creates NS records on a domain corresponding to the nameservers specified.

func DetermineNameservers

func DetermineNameservers(dc *models.DomainConfig) ([]*models.Nameserver, error)

DetermineNameservers will find all nameservers we should use for a domain. It follows the following rules: 1. All explicitly defined NAMESERVER records will be used. 2. Each DSP declares how many nameservers to use. Default is all. 0 indicates to use none.

func DetermineNameserversForProviders

func DetermineNameserversForProviders(dc *models.DomainConfig, providers []*models.DNSProviderInstance) ([]*models.Nameserver, error)

DetermineNameserversForProviders is like DetermineNameservers, for a subset of providers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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