create_zone

Function create_zone 

Source
pub async fn create_zone(
    __arg0: State<AppState>,
    __arg1: Json<CreateZoneRequest>,
) -> Result<(StatusCode, Json<ZoneResponse>), ApiError>
Expand description

Create a new zone

This endpoint:

  1. Generates zone file from structured configuration
  2. Writes the zone file to disk
  3. Executes rndc addzone to add the zone to BIND9