dns

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

View Source
var (
	CivoNameServers         []string = []string{"ns0.civo.com", "ns1.civo.com"}
	DigitalOceanNameServers []string = []string{"ns1.digitalocean.com", "ns2.digitalocean.com", "ns3.digitalocean.com"}
	VultrNameservers        []string = []string{"ns1.vultr.com", "ns2.vultr.com"}
)
View Source
var BackupResolver = &net.Resolver{
	PreferGo: true,
	Dial: func(ctx context.Context, network, address string) (net.Conn, error) {
		d := net.Dialer{
			Timeout: time.Millisecond * time.Duration(10000),
		}
		return d.DialContext(ctx, network, "8.8.8.8:53")
	},
}

BackupResolver provides a DNS resolver to fall back to if the primary one fails

Functions

func GetDomainNSRecords added in v0.1.61

func GetDomainNSRecords(domainName string) ([]string, error)

GetDomainNSRecords

func VerifyProviderDNS

func VerifyProviderDNS(cloudProvider string, cloudRegion string, domainName string, nameServers []string) error

VerifyProviderDNS

Types

This section is empty.

Jump to

Keyboard shortcuts

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