dns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	Client          *azapi.Client
	SubscriptionIDs []string
}

Driver enumerates Azure public DNS zones (`Microsoft.Network/dnsZones`) and their record sets, mapping them to the cloudlist `domain` asset.

Private DNS zones live under `Microsoft.Network/privateDnsZones` with a separate API version; they are out of scope here because the highest CSPM signal value (DNS shadowing, dangling CNAMEs) lives on internet-facing public zones.

func (*Driver) GetDomains

func (d *Driver) GetDomains(ctx context.Context) ([]schema.Domain, error)

GetDomains returns one schema.Domain per public DNS zone. A failure on any single zone's record-set listing is logged and the zone is surfaced with whatever records were collected so far; subscription-level failures are returned to the caller and aggregated via list.AddError upstream.

Jump to

Keyboard shortcuts

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