dns

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchRemoteConfig

func FetchRemoteConfig(factumConfig *util.ConfigFactum) (*util.ConfigDNS, error)

FetchRemoteConfig pulls the DNS sync settings from the primary, authenticated with factumConfig.Token (checked against the primary's Settings.FactumApiToken - see web.Controller.checkServiceToken).

Types

type DNSClient

type DNSClient struct {
	Config *util.ConfigAgentRoot
	DNS    *util.ConfigDNS
	// contains filtered or unexported fields
}

func NewDNSClient

func NewDNSClient(config *util.ConfigAgentRoot) (*DNSClient, error)

NewDNSClient fetches the DNS sync settings from the primary over REST - factum-dns typically runs on a different host than the primary, so unlike before, it no longer opens a direct connection to factum's Postgres just to read these (see util.ConfigDNS's doc comment).

func (*DNSClient) Sync

func (dns *DNSClient) Sync(reporter jobevent.Reporter) error

Get all devices from factum database Write a dnsmgr records file Ask dnsmgr to update dns

Jump to

Keyboard shortcuts

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