Skip to content

What's New in 4.6.0

Warning: In development. 4.6.0 is the master branch and has no tag yet. This page lists what has landed so far and grows until the release is cut. The latest release line is 4.5.x, and 4.4.x remains the stable line recommended for production.

4.6.0 so far brings an opt-in change approval workflow, a handful of operational knobs and a large internal cleanup. Zone changes can be routed through a reviewer before they are written, secondary zones can be pulled from their primary on demand, an installation can stop bumping the SOA serial on saves that change nothing, and every setting from earlier releases can now be set from a Docker environment variable. Underneath, the web forms and the API were moved onto the same service layer, which closed a number of gaps where the two behaved differently.

Highlights

Change approval workflow

With approval.enabled on, a user who holds a change request permission but cannot edit a zone gets the normal editor, and the save button reads Submit for approval. The changes are stored as a change request with a reason instead of being written. Reviewers - users with a change approve permission and the edit permission for the zone, or administrators - see a pending count in the Zones menu, open the request, read the before and after of every row with a warning when the zone moved on since filing, and approve or reject it with a comment. Approval applies the changes as the reviewer and bumps the serial once; the record change log attributes them to the request and its requester. Zone deletion can be requested the same way; an approved deletion keeps a zone file snapshot that reviewers can download from the request. The zone lists carry a pending count per zone, and a request whose apply failed can be tried again by a reviewer once the cause is fixed. approval.require_review_for_all sends every change through review, editors and administrators included.

Four permissions come with it (zone_change_request_own, zone_change_request_others, zone_change_approve_own, zone_change_approve_others), none granted by default. Email to reviewers and requesters is a separate switch, notifications.change_request_enabled, and notifications.change_request_soa_contact also mails the zone's SOA contact. The API v2 gains /change-requests endpoints to file, list, approve, reject and cancel, and direct record writes to a reviewed zone answer 403 with a pointer to them. Bulk tools, zone creation and dynamic DNS updates stay direct in this first version.

Zone editor in request mode

Reviewing a change request

See Change Requests.

Retrieve a secondary zone from its primary

The edit page of a Secondary zone offers Retrieve from primary next to the primary IP. It asks PowerDNS to transfer the zone right away instead of waiting for the next SOA refresh, and reports whether the request was accepted. The button needs the PowerDNS API: the API backend, or the SQL backend with pdns_api.url and pdns_api.key set. Without it there is no way to trigger a transfer. It also needs the zone meta edit permission.

Retrieve from primary

See Zone Management.

Send NOTIFY from the zone page

Master and Producer zones get a Send NOTIFY button on the edit page, with the same conditions as Retrieve from primary: the PowerDNS API and the zone meta edit permission. PowerDNS then notifies the zone's secondaries right away.

Send NOTIFY

SOA record editor

Editing the SOA record no longer means getting seven space-separated values in the right order. The record editor (tick the SOA row and click Edit selected) shows separate fields:

  • Primary nameserver and Hostmaster. The hostmaster accepts an email address (hostmaster@example.com) or the DNS form.
  • Serial, shown read-only because Poweradmin bumps it on every change.
  • Refresh, Retry, Expire and Minimum TTL, each with its value as a duration (10800 reads 3h) and a short line on what it does.

Use defaults fills the four timers from the dns.soa_* settings. Edit as text switches back to the raw content string when you need a custom serial or a [SERIAL] placeholder.

SOA record editor

In the zone's record list the SOA row keeps its content field. A Details toggle under it shows the same fields with labels and durations.

SOA details in the record list

See Zone Management.

Sign in through the web server

With remote_user.enabled, Poweradmin signs users in as the user the web server or an authenticating proxy has already verified: REMOTE_USER from Apache basic auth, mod_auth_mellon or nginx auth_basic, or a header such as Remote-User from Authelia or oauth2-proxy, accepted only from addresses listed in remote_user.trusted_proxies. Email, name and groups can come from the same source, and groups map to permission templates and groups as for SAML.

Only accounts whose sign-in method is "web server" are signed in this way. An administrator switches an account over with the Web server authentication checkbox on the user form, and new accounts can be created on first sign-in. Enable it only when PHP cannot be reached except through the authenticating server.

'remote_user' => [
    'enabled' => true,
    'header' => 'Remote-User',
    'trusted_proxies' => ['172.20.0.5'],
],

Login page offering to continue as the web server user

See Web Server Authentication.

Zone limits for users and groups

A superuser can now cap how many zones a user or group may own (#72). The Zone limit field on the user and group forms takes a number, or stays empty to use dns.default_max_zones_per_user or dns.default_max_zones_per_group; both defaults are unlimited unless set. A user counts the zones they own directly and a group the zones assigned to it, and superusers are never limited. A zone created for a group only counts against that group, so a hard cap on one user also needs a limit on each of that user's groups.

Creating a zone, adding an owner or group and the zone transfer when a user is deleted are refused past the limit, on the web and in the API (409). Lowering a limit keeps existing zones. The add-zone pages show how many zones are left, and interface.show_zone_limit_column adds the counts to the users and groups lists. API v2 reads and sets max_zones on users and groups; only superusers may set it.

'dns' => [
    'default_max_zones_per_user' => 25,
    'default_max_zones_per_group' => 100,
],

In Docker: PA_DNS_DEFAULT_MAX_ZONES_PER_USER, PA_DNS_DEFAULT_MAX_ZONES_PER_GROUP and PA_SHOW_ZONE_LIMIT_COLUMN.

Zone limit on the user form

Remaining zones on the add-zone page

See Zone Limits.

Share zone templates with groups

A private zone template can be shared with user groups (#1267). Members of a group see the template and create zones from it, and members with zone_templ_edit can edit it and its records. Only the owner or a super admin deletes it or changes its groups. The owner shares with the groups they belong to; a super admin with any group. The groups can be picked when a template is added or edited, and API v2 takes them as a groups array of ids on POST and PUT /zone-templates. A super admin who edits another user's private template no longer becomes its owner.

Shared badge in the template list

See Sharing Templates with Groups.

Four-eyes change approval

approval.allow_self_approval (default true) can be set to false so a requester cannot approve their own change request, on the web page or through the API. The request list flags requests that nobody else could approve.

A reviewer's own request

See Change Requests.

Issue an API key from the command line

bin/poweradmin api-keys:create --user=<id> --name=<label> [--expires=<date>] [--readonly] issues an API key without the web interface, for installs that run headless. Only the secret is printed to standard output, once, so a script can capture it; the same permission and limit checks as the API Keys page apply.

Optional serial bump on unchanged saves

Saving a zone with no record changes has always bumped the SOA serial, and still does by default, because that is how operators force a NOTIFY. dns.bump_serial_on_unchanged_save lets an installation opt out: with false, a zone save, single record edit, approved change request or API v2 record, RRset or bulk write that changes nothing (or only a record comment) leaves the serial alone. A save that does change a record bumps once, as before. In Docker the setting is PA_DNS_BUMP_SERIAL_ON_UNCHANGED_SAVE.

See DNS Settings.

Every setting reachable from Docker

Twelve settings from 4.3.0 and earlier had no environment variable, so a container had to mount a settings.php to change them. They now have one each: the database charset, the password policy's special-character set, the lockout IP whitelist and blacklist, the two permission template visibility flags, the dashboard statistics toggle, the four avatar settings and the pinned record types.

See Docker and the full table in DOCKER.md.

Stale zone saves keep your edits

When another user saved the zone first and the conflict strategy rejects your form, the editor now re-renders with your submitted records and comment in place, marks the rows that differ from what the zone holds, and lets you re-check and resubmit instead of retyping. With the last_writer_wins strategy a stale form is saved as before.

Stale zone save

See Basic Configuration for the strategies.

Also in this release

Change What it does Where
Frame, content-type and referrer headers Every response sends X-Frame-Options: DENY, Content-Security-Policy: frame-ancestors 'none'; object-src 'none'; base-uri 'self', X-Content-Type-Options: nosniff and Referrer-Policy: same-origin. To embed Poweradmin in another site, list its origins in the new interface.frame_ancestors setting. The nginx and Caddy examples add the same headers on static files Reverse Proxy
Zero TTL accepted in the API The v2 record create, update, bulk and RRset endpoints accept ttl: 0 (do not cache), as the web editor does; only negative values are refused. Integer fields such as ttl and priority reject fractional strings like "0.5" instead of truncating them API Overview
canonical_id in zone responses In API backend mode, the API v2 zone list and GET /zones/{id} also return canonical_id, equal to id. The id itself became canonical in 4.5.0 API Endpoints
Bulk actions checked before writing An unknown action in POST /zones/{id}/records/bulk is refused with 400 before any operation is applied, and the add-record form refuses a blank content or type with a field-specific message API Endpoints
Paging, sorting and filtering on the API lists Records, RRsets, groups, group members and zones, zone templates and their records, permissions and permission templates take page and per_page like zones and users, plus sort (for example sort=type,ttl:desc) and substring filters such as q, name and content. Without the new parameters the lists are unchanged (#1114, #1440) API Endpoints
Change requests in the API POST /zones/{id}/change-requests files a request, GET /change-requests lists them, and /change-requests/{id}/approve and /reject decide; write endpoints on a reviewed zone answer 403 Change Requests
[DOMAIN] and [TLD] follow the public suffix list Zone templates split a zone name where registration actually happens, so example.com.pl resolves [DOMAIN] to example and [TLD] to com.pl. Previously only about twenty suffixes such as co.uk were recognised and everything else split on the last dot DNS Templates
SQLite runs in WAL mode PowerDNS reads the same file Poweradmin writes, and the old journal let a reader block a zone save with database is locked. SQLite now opens in write-ahead logging, which adds -wal and -shm files next to the database and changes how it must be backed up SQLite Configuration
Zone type change needs the target grant Converting a zone into another kind requires the same permission as creating one of that kind: zone_slave_add for Secondary and Consumer, zone_master_add for the rest. Applying a template to an existing zone needs content edit rights on it. Both also in 4.5.2 Permissions
Deleting a group that is a zone's last owner refused Deleting a group that is the last owner of a zone is refused. The message names the zone, and the v2 API answers 409 with the same text. Removing the last owner in other ways was already refused in 4.5.0 Permissions
One permission rule for zone actions A zone action is granted when any template the user holds, directly or through a group, grants it and the user owns the zone. The stricter hybrid rule that required the grant to come from an owning group is gone Permissions
Primary zone over delegation records A primary zone can be created where the parent only holds delegation records for it (#802) Zone Management
Warning when a new zone hides parent records Creating a zone under an existing one, such as shop.example.com under example.com, lists the parent records the new zone now hides, excluding delegation records. The v2 API returns them as shadowed_records (#1641) Zone Management
Unknown SOA-EDIT-API values rejected The add-zone form refuses a serial policy value it does not know instead of silently dropping it DNS Settings
API user passwords follow the policy Passwords set through the API are hashed with the configured algorithm and must satisfy the password policy, the same as the web form. use_ldap must be a boolean and is refused while LDAP is off. Also in 4.5.2 API Endpoints
API zone creation matches the web form Zone names are converted to punycode, the third-level check applies, and a template the caller may not use is refused API Overview
API records stored as punycode Record names and content are normalised to punycode (also in 4.5.2), and a record with the same name, type and content as an existing one answers 409, matching the web editor API Endpoints
Last super admin protected Super admin granted through a group counts. Deleting or disabling the last one, removing them from a group, deleting the group, changing its template or taking user_is_ueberuser out of the template is refused (409 in the API), and sign-in sync skips such a change with a warning. 4.5.2 refuses deleting the last super admin in the web interface. Record comments are cleaned up when a zone is deleted Users and Roles
Request validation rules enforced Length, list and allowed-value rules on form fields are checked instead of being dropped
Zone record counts on signed zones The zone list and the internal zone endpoint report the true record count on DNSSEC-signed zones, and empty non-terminal rows are not counted anywhere. The internal endpoint also returns master, account, owner and record_count
Turning off LDAP needs a password PUT /api/v2/users/{id} with use_ldap=false must carry a password, since the LDAP placeholder cannot be kept as a login password API Endpoints
NS and MX target checks ignore case NS and MX target checks compare names case-insensitively on every database, and the internal validation endpoint validates through the configured backend in API mode. CNAME checks already did in 4.5.0
Basic auth challenge on 401 With api.basic_auth_enabled on, an unauthenticated API request answers with WWW-Authenticate: Basic realm="..." using api.basic_auth_realm API Configuration
Ed25519 and Ed448 keys in PKCS#8 v2 form The key import reads Ed25519 and Ed448 PEM keys that carry the public key next to the private one, which 4.5.0 refused as unreadable DNSSEC
Internals reorganised The code under lib/ now follows its layers strictly: domain and application services are grouped by concern, their interfaces live in Domain/Port, web controllers are grouped by route, BaseController moved to Application\Controller, every entry point boots through one Kernel, and modules reach core services through a ModuleServices contract. Behaviour is unchanged; addon code that imports these classes needs its use lines updated Development Setup
bin/poweradmin console A first command-line entry point with zone:list and zone:show, running the same use cases as the web interface without a session (bin/poweradmin --as-user=1 zone:show example.com). Output is tab separated or JSON with --format=json Development Setup
Signed zones rectified after more changes Applying a template to a zone, update all zones on the template page, a dynamic DNS update and the consistency repairs that rename or add records now rectify the zone, so its NSEC/NSEC3 chain stays valid. The dashboard warns when dnssec.enabled is on without pdns_api. The rectify part is also in 4.5.2, 4.4.4 and 4.3.8 DNSSEC
New zones served at once in SQL mode With pdns_api configured, zone create and delete and record changes call the PowerDNS cache flush, so a new zone no longer answers REFUSED for up to five minutes and edits are not held back by cached answers (#1615) PowerDNS API
Owner for autoprimary zones With dns.adopt_zone_owner_from_account on, a zone PowerDNS creates from an autoprimary goes to the user named in its account field, through the zone sync in API mode and the "zones without owners" consistency repair (#1617) Supermasters and Autoprimaries
Failed zone creation cleans up A secondary zone's primary is written in the same statement as the zone, so a failure part-way no longer leaves a zone row behind, and a cleanup that fails is logged with the zone id (#1616)
Owner picker follows the create rule The add-zone forms list other users only for callers who may assign them, and an owner id that does not exist is refused instead of creating a zone nobody owns (#1558) Zone Management
Array query parameters refused A query parameter sent as an array, such as ?type[]=A, answers 400 with "Query parameter 'type' must be a single value" instead of 500, on API v2 and the internal API (#1609) API Endpoints
DNSSEC key changes need zone view access Adding, importing, updating and deleting keys through the API needs view access to the zone as well as the DNSSEC manage permission, as on the web pages. An imported key whose algorithm is not offered for new keys on the connected PowerDNS version is refused, on the import form and with a 400 in the API API Endpoints
Shared zone ids in the consistency check The database consistency check lists each zone id two zones share, with both zone names and the number of ignored owners and group grants. It reports only; there is no automatic fix Database Consistency Check
Zone names differing in letter case The database consistency check lists zones whose names match except for letter case, such as Example.com and example.com, which PowerDNS treats as one name. It reports only Database Consistency Check
Unverified email links logged Linking an OIDC or SAML identity to an existing account by email without an email_verified claim is logged as a warning OIDC Authentication
Sign in with GitHub A github provider preset signs users in through a GitHub OAuth App. The verified address comes from GitHub's email list, also when the profile email is private, and Docker sets it up with PA_OIDC_GITHUB_*. Other OAuth 2.0 providers with such a list can use the new emails_url (#1620) OIDC Authentication
Sign-in only with matching claims oidc.required_claims and saml.required_attributes admit only users whose provider sends the configured values, such as membership of a dns-admins group. The check also applies to accounts that are already linked. Docker: PA_OIDC_REQUIRED_CLAIMS, PA_SAML_REQUIRED_ATTRIBUTES (#1822) OIDC Authentication
Password reset links across clock changes Reset link expiry is stored and checked in UTC, so a link no longer expires at once, or works again after expiring, in the hour the clock goes back. Links issued before the upgrade stop working (#1850) Upgrading to 4.6.0
SAML sign-in tied to the browser A SAML response is accepted only as the answer to a sign-in started from the same browser, so an unsolicited or replayed response no longer signs anyone in. Needs HTTPS; allow_idp_initiated on a provider restores the old behaviour SAML Authentication
Login lockout per IPv6 subnet With track_ip_address on, IPv6 failures are counted per /64 network and IPv4-mapped addresses as IPv4, so rotating addresses inside a subnet no longer resets the count. The new username_attempts (off by default) caps failures per account across all addresses Security Policies
Maximum session lifetime interface.session_max_lifetime (off by default) ends a session a set time after sign-in, however active it stays Basic Configuration
Prometheus metrics GET /api/metrics serves zone, DNSSEC, user and optional record counts in the Prometheus text format, off by default. Scrapes use an API key of a user with server_status_view; a Grafana dashboard ships in addons/grafana/ (#1463) Prometheus Metrics
Bulk record requests capped POST /zones/{id}/records/bulk takes at most api.bulk_max_operations operations (1000 by default) and answers 400 above that API Configuration
Record comments, PTR records and dry run in the API API v2 record responses include comment and GET /zones/{id}/records filters on it. Bulk operations take a per-operation comment and, for A and AAAA creates, create_ptr; a PTR that cannot be created is reported in data.warnings without failing the batch. A top-level dry_run runs every check and writes nothing (#1675) API Endpoints
Disabling MFA asks for a code Disable MFA and Regenerate Recovery Codes need a current code from the authenticator app, an email code or a recovery code, so a stolen session cannot switch MFA off or take new recovery codes. An email code that could not be delivered is reported instead of shown as sent. Also in 4.5.2 Multi-Factor Authentication
Matching records follow the other zone's rules The PTR, A/AAAA record or synced comment written alongside a record is skipped, with a warning, when the user must file change requests in that zone or the request uses an API key restricted to other zones. This covers adding, editing and deleting, on the web and in the API Reverse DNS
Record edit checks the posted record The record edit form refuses a save whose posted record is not the record the page was opened for
Zone import keeps records it cannot replace In replace mode, every record of a name and type is checked before the zone's records for it are deleted, so a refused line keeps them instead of leaving the zone without them. Also in 4.5.2 and 4.4.4 Zone Import/Export
CNAME RRsets replaced through the API PUT /zones/{id}/rrsets replaces a CNAME RRset; the old CNAME no longer counts as a conflict with its replacement API Endpoints
Client address behind proxies A Client-IP header is ignored; X-Forwarded-For entries with a port or in ::ffff: form are read as addresses, and an entry that is not an address makes Poweradmin use the proxy's address instead of X-Real-IP. Also in 4.5.2 and 4.4.4. The new security.client_ip_header (PA_CLIENT_IP_HEADER) picks the one header to trust Reverse Proxy
Dynamic DNS at /nic/update The Docker image, the shipped .htaccess and the nginx example accept /nic/update, the path stock dyndns2 clients use, as the Caddy example already did. An update with no address parameter sets the record to the address the request came from instead of failing with dnserr, except with dualstack_update=1. myip=whatismyip from an IPv6 client now updates the AAAA record Dynamic DNS Client Setup

Next