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-policydirective.
Functions§
- apply_
dnssec_ request - Applies the DNSSEC fields of a
ModifyZoneRequestto 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
trueifpathis 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