pub async fn create_zone(
__arg0: State<AppState>,
__arg1: Json<CreateZoneRequest>,
) -> Result<(StatusCode, Json<ZoneResponse>), ApiError>Expand description
Create a new zone
This endpoint:
- Generates zone file from structured configuration
- Writes the zone file to disk
- Executes
rndc addzoneto add the zone to BIND9