Module zones

Module zones 

Source
Expand description

Zone management API handlers

This module implements HTTP handlers for all zone-related operations:

  • Creating zones (with zone file creation)
  • Deleting zones
  • Reloading zones
  • Getting zone status
  • Freezing/thawing zones
  • Notifying secondaries

Re-exports§

pub use crate::zones_types::CheckdsRequest;
pub use crate::zones_types::CreateZoneRequest;
pub use crate::zones_types::DnsRecord;
pub use crate::zones_types::DsRecordView;
pub use crate::zones_types::DsSetResponse;
pub use crate::zones_types::ModifyZoneRequest;
pub use crate::zones_types::ServerStatusResponse;
pub use crate::zones_types::SoaRecord;
pub use crate::zones_types::ZoneConfig;
pub use crate::zones_types::ZoneInfo;
pub use crate::zones_types::ZoneListResponse;
pub use crate::zones_types::ZoneResponse;
pub use crate::zones_types::ZoneStatusResponse;
pub use crate::zones_types::ZONE_TYPE_PRIMARY;
pub use crate::zones_types::ZONE_TYPE_SECONDARY;

Constants§

DNSSEC_POLICY_INSECURE
The built-in BIND9 policy that gracefully unsigns a zone (ADR-0001).
DNSSEC_POLICY_NONE
Sentinel policy name requesting removal of the dnssec-policy directive.

Functions§

apply_dnssec_request
Applies the DNSSEC fields of a ModifyZoneRequest to a parsed zone configuration, enforcing the ADR-0001 transition rules.
checkds_zone
Report a DS change at the parent zone (ADR-0001)
create_zone
Create a new zone
delete_zone
freeze_zone
Freeze a zone (disable dynamic updates)
get_zone
Get a specific zone
get_zone_ds
Get the DS records of a signed zone (ADR-0001)
is_normalized_zone_dir
Returns true if path is an absolute, fully-normalized directory path.
list_zones
List all zones
modify_zone
Modify a zone configuration
notify_zone
Notify secondaries about zone changes
reload_zone
Reload a zone
resolve_zone_dir
Resolve and validate the configured zone directory at startup.
retransfer_zone
Force a zone retransfer from primary
server_status
Get server status
thaw_zone
Thaw a zone (enable dynamic updates)
zone_status
Get zone status