This documentation covers Poweradmin 4.0.x and 4.1.x. Some sections are still being expanded.
Zone Import/Export Configuration
Overview
Poweradmin includes zone import/export functionality that allows users to import zones from BIND zone files and export zones as zone files. This is useful for migrating zones between DNS servers or for backup purposes.
Configuration Options
Zone import/export settings can be configured in the config/settings.php file under the modules > zone_import_export section.
| Setting | Default | Description |
|---|---|---|
enabled |
false |
Enable zone import/export functionality |
auto_ttl_value |
300 |
Default TTL in seconds for records when importing zone files |
max_file_size |
1048576 |
Maximum allowed file upload size in bytes (default: 1 MB) |
Configuration Example
PHP Configuration
return [
'modules' => [
'zone_import_export' => [
'enabled' => true,
'auto_ttl_value' => 300,
'max_file_size' => 1048576,
],
],
];
Docker Environment Variables
docker run -d --name poweradmin -p 80:80 \
-e PA_MODULE_ZONE_IMPORT_EXPORT_ENABLED=true \
-e PA_MODULE_ZONE_IMPORT_EXPORT_AUTO_TTL=300 \
-e PA_MODULE_ZONE_IMPORT_EXPORT_MAX_FILE_SIZE=1048576 \
poweradmin/poweradmin
| Variable | Description | Default |
|---|---|---|
PA_MODULE_ZONE_IMPORT_EXPORT_ENABLED |
Enable zone import/export module | false |
PA_MODULE_ZONE_IMPORT_EXPORT_AUTO_TTL |
Default TTL for imported records (seconds) | 300 |
PA_MODULE_ZONE_IMPORT_EXPORT_MAX_FILE_SIZE |
Max upload file size in bytes | 1048576 |
Usage
When enabled, zone import/export features are available from:
- Zone Export - Export any zone as a BIND zone file from the zone management page
- Zone Import - Import zones from BIND zone files via the Tools menu
Zone Export
- Navigate to any zone in Poweradmin
- Click the Export button or icon
- Select Zone File format
- The zone file will be downloaded in BIND format
Zone Import
- Navigate to Tools > Zone Import in the navigation menu
- Upload a BIND-format zone file
- Review the parsed records
- Confirm the import
Supported Features
- BIND zone file format
- DNSSEC record types
- IDN (Internationalized Domain Names) support
- Record comment synchronization
- Automatic TTL assignment for records without explicit TTL values
Security Considerations
- Zone import requires appropriate user permissions
- File uploads are limited by the
max_file_sizesetting - Imported records are validated before being added to the database