DNS.Zone.Editor (DNS v0.4.1)
View SourceZone editor interface for interactive zone management.
Provides a high-level interface for zone creation, modification, and management with built-in validation and error handling.
Summary
Functions
Add a record to a zone.
Clone a zone for testing purposes.
Create a new zone with interactive prompts.
Enable DNSSEC for a zone.
Export zone to standard format.
List all records in a zone.
Remove a record from a zone.
Search for records by name, type, or value.
Update an existing record in a zone.
Validate a zone and provide feedback.
Functions
@spec add_record(String.t() | DNS.Zone.Name.t(), atom(), keyword()) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Add a record to a zone.
@spec clone_zone(String.t() | DNS.Zone.Name.t(), String.t() | DNS.Zone.Name.t()) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Clone a zone for testing purposes.
@spec create_zone_interactive( String.t(), keyword() ) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Create a new zone with interactive prompts.
@spec enable_dnssec( String.t() | DNS.Zone.Name.t(), keyword() ) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Enable DNSSEC for a zone.
@spec export_zone( String.t() | DNS.Zone.Name.t(), keyword() ) :: {:ok, String.t()} | {:error, String.t()}
Export zone to standard format.
@spec list_records(String.t() | DNS.Zone.Name.t()) :: {:ok, [map()]} | {:error, String.t()}
List all records in a zone.
@spec remove_record(String.t() | DNS.Zone.Name.t(), atom(), keyword()) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Remove a record from a zone.
@spec search_records( String.t() | DNS.Zone.Name.t(), keyword() ) :: {:ok, [map()]} | {:error, String.t()}
Search for records by name, type, or value.
@spec update_record(String.t() | DNS.Zone.Name.t(), atom(), keyword(), keyword()) :: {:ok, DNS.Zone.t()} | {:error, String.t()}
Update an existing record in a zone.
@spec validate_zone(String.t() | DNS.Zone.Name.t()) :: {:ok, map()} | {:error, String.t()}
Validate a zone and provide feedback.