Configuring DNSSEC in an ISPConfig 3 Multiserver Environment
I’ve operated my own web and email servers for many years, using everything from manually configured services to Citadel, a system that grew from bulletin board software into a groupware platform. When I began looking for a more integrated way to manage web hosting, email, and DNS, I discovered the Perfect Server guides at HowtoForge. Those guides introduced me to ISPConfig, which has remained the foundation of my hosting environment ever since.
My first ISPConfig installation ran on CentOS. I liked its stability, and using it allowed me to maintain familiarity with the Red Hat family of Linux distributions that I worked with professionally. When CentOS Linux was discontinued, I eventually moved to Debian rather than adopt one of the newer replacements. Over the years, I’ve occasionally used major upgrades as opportunities to rebuild my personal server, particularly when making structural changes. One of those changes was expanding from a single server to a multiserver installation with a second machine dedicated to DNS.
The additional DNS server improved redundancy, and ISPConfig’s default mirroring configuration made the arrangement relatively easy to manage. After operating that configuration for some time, I decided to implement DNSSEC as another layer of domain security. DNSSEC uses cryptographic signatures to authenticate DNS information, helping protect against forged responses. However, supporting DNSSEC reliably across multiple authoritative nameservers required changing how my servers managed and shared their DNS zones.
There are several ways to configure DNS hosting with ISPConfig, and each offers advantages depending on the size and requirements of the installation. Understanding those differences is useful before making changes to a working system. We’ll examine three configurations, from a single server to geographically separated nameservers, before working through the changes needed to support DNSSEC and discussing how it complements other domain security measures.
Three Approaches to DNS Hosting with ISPConfig
ISPConfig can manage DNS alongside web hosting, email, and other server services. For a small installation, all of these services can run on one machine. As requirements change, individual services can be distributed across multiple servers while remaining under the same management interface. DNS can be moved to a separate machine without requiring the web and email services to move with it.
DNS is a good service to separate because websites and email depend on it. Before a browser can connect to a website, or a remote mail server can deliver a message, the necessary records must be available through the DNS lookup process. If all authoritative nameservers become unreachable, cached records may allow some services to continue working temporarily, but new lookups can eventually fail. Keeping DNS available gives those services a better chance of being found.
Two nameserver hostnames do not necessarily mean two independent DNS servers. Two nameserver names might refer to one machine, two machines in the same facility, or servers separated by considerable distances. The differences matter when something fails, and when it comes time to maintain the servers. How the servers obtain their zone information is another important consideration, particularly when DNSSEC is involved.
- Single server with two nameserver hostnames.
- Multiserver DNS with ISPConfig mirroring.
- Multiserver DNS with primary and secondary zones.
Single Server with Two Nameserver Hostnames
The simplest ISPConfig installation places web hosting, email, DNS, and the management interface on one machine. Two nameserver hostnames, such as ns1.example.com and ns2.example.com, can both resolve to that server. Depending on the network configuration, the names may share an IP address or use different addresses assigned to the same machine. In either case, one DNS service is responsible for answering queries for both names.
The appeal of this arrangement is its simplicity. There is one server to purchase or rent, one operating system to maintain, and one ISPConfig installation to administer. DNS records are managed in one place, so there is no need to synchronize zones between separate machines. Software updates, backups, and troubleshooting are also relatively straightforward. For a personal hosting environment with modest requirements, reducing administrative complexity can be just as valuable as reducing cost.
The problem is that two nameserver hostnames do not give us two independent servers. If the server loses power, its operating system fails, or its network connection becomes unavailable, both nameservers become unreachable. Even assigning different IP addresses does not eliminate the shared failure point. DNS queries may continue to succeed temporarily through caching, but that does not replace an available authoritative nameserver.
There is also a practical distinction between a server being unavailable and DNS being unavailable. A single-server installation that hosts both a website and its authoritative DNS will lose both services during a complete server outage. Moving DNS to an independent machine cannot keep the failed website running, but it can keep DNS available for other services, preserve access to records, and allow administrators to redirect services when necessary.
Two nameserver hostnames are not the same thing as two independent nameservers. If both point to one machine, that machine remains a single point of failure.
This was the arrangement I used when I first adopted ISPConfig. It was inexpensive, uncomplicated, and adequate for my needs. Eventually, however, I wanted DNS to remain available independently of the machine hosting my websites and email. That led to the next configuration.
Multiserver DNS with ISPConfig Mirroring
ISPConfig supports multiserver installations in which multiple machines participate in a centrally managed hosting environment. The additional machines do not have to provide every service. A second server can be dedicated to DNS while the original continues handling websites, email, and the ISPConfig management interface.
In a mirrored DNS configuration, ISPConfig distributes the relevant DNS configuration data to participating servers. Each server’s ISPConfig services process that information and manage the corresponding local DNS configuration. From the administrator’s perspective, records can be maintained through the central interface without separately editing zone files on each machine. This makes the arrangement relatively easy to operate after the initial installation.
The advantage is that the DNS servers are actually independent. Each machine can answer authoritative DNS queries independently. If one server becomes unavailable, resolvers can query the other nameserver, provided it remains reachable and has the necessary records. This does not guarantee that every lookup will succeed immediately during an outage, but it removes the single-machine dependency of the original configuration.
Mirroring does introduce some additional responsibilities. Both machines must be maintained, ISPConfig’s synchronization must be functioning, and changes must reach the participating DNS services. Administrators should periodically query each authoritative nameserver directly rather than assume that a successful lookup through a recursive resolver proves both are operating correctly.
For ordinary unsigned DNS zones, this is a convenient arrangement. DNS records can be centrally managed while each server provides an independent authoritative service. It was the configuration I adopted when I expanded my installation, and it worked well for that purpose.
DNSSEC changes the requirements. An unsigned DNS zone primarily needs to provide consistent records, but a signed zone also contains cryptographic signatures and DNSSEC keys. If separate servers independently generate or manage signing information, their DNSSEC data may differ even when the underlying records appear identical. Differences are not automatically invalid, but key management, signature maintenance, and the relationship to the parent zone’s DS records become more complicated.
The problem is therefore not that ISPConfig mirroring is unsuitable for DNS generally. It is that ISPConfig’s internal mirroring is not the recommended mechanism for distributing DNSSEC-signed zones between multiple BIND servers. For this purpose, a traditional primary and secondary arrangement provides a clearer division of responsibilities.
Multiserver DNS with Primary and Secondary Zones
Traditional authoritative DNS provides a mechanism for maintaining copies of a zone across multiple servers. One server holds the primary zone, while secondary servers obtain their copies through DNS zone transfers. Both remain authoritative for the domain, but they do not independently maintain separate versions of its contents.
The primary server is responsible for maintaining the zone’s data. Each zone contains a Start of Authority (SOA) record with information used to coordinate secondary servers, including a serial number. When the zone changes, the serial number advances so secondary servers can recognize that newer information is available. This lets us determine whether the servers are synchronized.
BIND supports two principal forms of zone transfer. A full zone transfer, called AXFR, copies the complete zone. An incremental zone transfer, called IXFR, transfers changes when the necessary history and server capabilities are available. The primary can also send DNS NOTIFY messages to inform secondary servers that a zone has changed, allowing them to check for updates without waiting for the next scheduled refresh.
Zone transfers must be configured carefully. They should be permitted only to authorized secondary servers, and network access must allow the necessary communication. For installations where stronger transfer authentication is appropriate, TSIG can authenticate communication between DNS servers. Restricting transfers keeps unrelated servers from requesting complete copies of our zones. TSIG also helps authenticate the servers exchanging them.
A secondary DNS server does not need the primary to be online for every query. It maintains a local copy of the zone and answers requests directly. If the primary becomes unavailable, the secondary can continue serving that copy. However, the SOA record includes an expiration interval that limits how long a secondary can continue relying on zone data when it cannot refresh it. That is one reason zone-transfer monitoring and appropriate SOA settings matter.
For DNSSEC, the distinction becomes especially useful. The primary can maintain the signing keys and generate the signed zone. The secondary then receives the signed zone through ordinary DNS transfer mechanisms, including its DNSKEY and RRSIG records. It does not need to generate a separate set of signatures or maintain an independent copy of the signing keys.
This arrangement preserves the redundancy of two authoritative DNS servers while centralizing responsibility for zone signing. Both nameservers provide the same signed zone data, and the domain’s parent zone can publish DS records corresponding to the keys managed by the primary.
This takes a little more work than ISPConfig mirroring. The primary must permit appropriate transfers, the secondary must be configured to obtain the correct zones, and both must be tested after changes. DNSSEC also requires ongoing attention to signatures, signing keys, and the chain of trust established through the registrar and parent zone.
This is the arrangement I adopted when adding DNSSEC to my ISPConfig installation. It retains the availability benefits of a second DNS server while providing a more suitable foundation for DNSSEC. The next step is to examine how to move from ISPConfig’s default mirrored configuration to this primary and secondary arrangement without unnecessarily rebuilding the rest of the hosting environment.
Planning a Reliable DNS Infrastructure
A second nameserver helps only if it does not share all the same failure points as the first. Two machines can provide redundancy against a hardware failure while still sharing enough infrastructure that a single outage disables both. We need to consider where each server runs, how it connects to the Internet, and what it is responsible for.
DNS also differs from many other network services because it was designed to distribute information among multiple servers. A resolver does not need to contact a particular authoritative nameserver as long as another delegated server can provide the required information. That makes geographically separated nameservers practical, as long as their zones stay synchronized.
For my personal server, I am not trying to eliminate every possible failure. That would get expensive and complicated very quickly. I want to remove the obvious single points of failure without building something that is difficult to maintain.
In my installation, the original hosting server continues to provide web and email services, along with authoritative DNS. The second server is dedicated to DNS, allowing it to remain available independently of the primary machine. This arrangement improves DNS reliability without requiring a second complete hosting environment.
Geographical Separation
Operating two authoritative nameservers improves DNS availability by allowing resolvers to contact another server when one becomes unreachable. Hosting those nameservers on separate machines in different geographical locations reduces the likelihood that a single hardware failure, power outage, or network disruption will affect both.
In my installation, the primary server is located in California, while the secondary nameserver is located in London. This provides considerable geographical separation and reduces the infrastructure dependencies shared by the two servers. Both can answer authoritative DNS queries independently, so the secondary can continue serving DNS information if the primary becomes unavailable.
Geographical separation does not guarantee uninterrupted service, but it provides a practical improvement in reliability without requiring an elaborate infrastructure. For a personal hosting environment, two independently operated nameservers offer a reasonable balance between redundancy, cost, and maintenance.
Nameserver Delegation and Glue Records
Operating two authoritative DNS servers requires more than configuring BIND on each machine. The domain’s delegation must also identify the correct nameservers so that resolvers can discover them.
Delegation is maintained in the parent DNS zone. For a typical registered domain, the registrar provides a way to specify the authoritative nameservers. Those names must correspond to servers that actually answer authoritatively for the domain, and the NS records published within the zone should agree with the delegation.
An additional consideration arises when a domain uses nameservers whose hostnames belong to that same domain. For example, if example.com uses ns1.example.com and ns2.example.com, a resolver may need the nameservers’ addresses before it can query the domain that contains those addresses. Glue records supplied through the registrar and published by the parent zone help resolve this dependency.
Glue records are not required for every nameserver arrangement. They are particularly important when a nameserver’s address must be discovered through the domain being delegated, or through another delegation dependency. The registrar’s interface and the applicable parent-zone rules determine how those addresses are registered.
Both IPv4 and IPv6 addresses can be used for authoritative nameservers. Where IPv6 is configured, its addresses and firewall rules should be checked just as carefully as their IPv4 counterparts. A nameserver that works over one protocol but fails over the other can produce inconsistent results for clients and resolvers.
Before enabling DNSSEC, it is worth using dig to confirm that the delegation, nameserver addresses, and authoritative responses are correct. DNSSEC adds cryptographic validation to DNS, but it does not repair an incorrect delegation or an unreachable nameserver.
DNS Availability During Server Failures
One of the advantages of multiple authoritative nameservers is that resolvers can query another server when one becomes unavailable. This behavior is fundamental to DNS, although the exact timing and selection of servers depend on the resolver’s implementation and its previous experience with those nameservers.
A secondary DNS server maintains its own copy of the zone and answers queries without consulting the primary for each request. Consequently, an outage of the primary does not immediately prevent the secondary from serving DNS information. Websites, mail servers, and other services that remain operational can continue to be discovered through DNS.
The secondary must still receive updates periodically. The zone’s SOA record includes timing information that influences how a secondary checks for changes and how long it can continue serving data without successfully refreshing its copy. If the primary remains unavailable beyond the zone’s expiration interval, the secondary may no longer be able to serve the zone authoritatively.
DNSSEC introduces another time-dependent consideration. Signed DNS records include signatures with defined validity periods. Even if a secondary retains a copy of the zone, those signatures can eventually expire if the primary cannot refresh and redistribute the signed information. A DNSSEC deployment therefore needs to account for both zone expiration and signature validity.
We also need to recognize what redundant DNS cannot accomplish. If the primary machine also hosts the website and email services, losing that machine still interrupts those services. A secondary nameserver can continue providing the correct DNS records, but it cannot replace the missing web or mail server.
Balancing Reliability and Complexity
Every server we add is another machine to maintain. Operating systems require security updates, DNS software must be monitored, firewall rules need to remain correct, and configuration changes must reach the appropriate machines. A more elaborate arrangement is not automatically more reliable if its complexity makes errors more likely.
For a small hosting environment, two geographically separated authoritative nameservers provide a useful balance. They remove the most obvious single point of failure without requiring a large DNS infrastructure. The primary server can remain responsible for managing zone information, while the secondary concentrates on maintaining and serving a synchronized copy.
With those design considerations established, we can turn to the practical work of preparing ISPConfig and changing the existing mirrored DNS configuration to use primary and secondary zones.
Preparing the ISPConfig Installation
Before changing DNS, make sure the existing ISPConfig installation is working correctly. Converting from mirrored DNS to primary and secondary zones should not require rebuilding the web or email services. The changes concern how authoritative DNS information is maintained and distributed between the two servers.
For this guide, we’ll assume an existing ISPConfig 3 multiserver installation with two machines. The first provides web hosting, email, and primary DNS services, while the second is dedicated to DNS. Both servers use BIND, and ISPConfig manages their configuration through its central interface. My installation runs on Debian, although the principles apply to other supported Linux distributions.
Readers starting with a new installation can follow the appropriate Perfect Server and multiserver instructions at HowtoForge. Those guides cover the operating system, database, web server, mail services, and ISPConfig installation in considerably more detail than we need here. The purpose of this guide is to configure DNSSEC within an established environment, not to reproduce the complete server installation process.
The preparation work consists of identifying the servers’ responsibilities, confirming that both nameservers operate correctly, and checking the existing DNS records. We also want to preserve enough information about the current configuration to recover if something goes wrong during the conversion.
Identifying the Server Roles
The first step is to establish which machine will maintain the primary DNS zones and which will receive secondary copies. In my installation, the main hosting server retains responsibility for the primary zones, while the second machine serves as the secondary nameserver.
This division keeps zone management alongside the existing ISPConfig installation. DNS records continue to be administered through the familiar interface, and the secondary server concentrates on receiving and serving copies of those zones. The arrangement does not require moving websites or email accounts to the secondary machine.
Both servers must have stable network addresses and correctly configured hostnames. They must also be reachable by resolvers using the addresses published for their nameserver hostnames. Where IPv6 is enabled, both protocols should be tested rather than assuming that successful IPv4 queries establish that the entire configuration works.
We should also identify the actual software providing authoritative DNS. ISPConfig supports different DNS configurations, but the procedures in this guide assume BIND. The configuration details and zone-transfer behavior discussed later depend on that choice.
Confirming the Existing DNS Configuration
Before enabling DNSSEC or changing the relationship between servers, verify that both currently answer authoritative queries for the domains they host. A successful lookup through a normal recursive resolver does not prove that each authoritative nameserver is operating correctly, because the resolver may return cached information or obtain its answer from only one server.
We can query each nameserver directly using dig. For example:
dig @ns1.example.com example.com SOA +norecurse
dig @ns2.example.com example.com SOA +norecurse
Replace the example names with the actual nameservers and domain. The responses should identify the appropriate authoritative zone, and the DNS header should include the aa flag, indicating an authoritative answer.
The SOA records also provide a useful starting point for comparing the servers. Their serial numbers should reflect the current zone information. In a mirrored ISPConfig installation, the records are generated through the configuration maintained on each server. After converting to primary and secondary zones, the serial number becomes an important part of the zone-transfer process.
Next, check the NS records:
dig @ns1.example.com example.com NS +norecurse
dig @ns2.example.com example.com NS +norecurse
Both servers should provide the expected authoritative nameserver information. If the answers differ unexpectedly, resolve that problem before introducing DNSSEC. Cryptographic signing makes consistency more important, not less.
Checking Delegation and Connectivity
The domain registrar must delegate the domain to the nameservers we intend to use. Those nameservers must be reachable from the Internet, and their published addresses must correspond to the machines providing authoritative DNS.
A delegation can be inspected with:
dig example.com NS +trace
The trace follows the DNS delegation path and helps identify the nameservers published by the parent zone. It is useful for detecting differences between the delegation and the records maintained within the authoritative zone.
DNS ordinarily uses UDP port 53 for queries, but TCP port 53 is also required. TCP is especially important for zone transfers and is also used for ordinary DNS queries under certain circumstances. Both servers should accept the appropriate public DNS traffic, while transfers between the primary and secondary should be restricted to authorized systems.
If the servers have both IPv4 and IPv6 addresses, test their reachability independently. A server may answer correctly over IPv4 while an incorrect firewall rule or network configuration prevents it from responding over IPv6.
At this stage, we are not changing the domain’s delegation or publishing DNSSEC records. We are confirming that the existing infrastructure is healthy before modifying how the servers exchange zone information.
Preserving the Existing Configuration
DNS is a foundational service, so changes should be made with a recovery plan. Before modifying the installation, preserve the current ISPConfig configuration and the relevant BIND settings. A current server backup is useful, but it is also worth recording the existing DNS server assignments and mirroring settings.
We should identify the domains hosted by the installation and confirm which zones are currently managed through ISPConfig. If ISPConfig hosts several domains, make sure every zone that belongs on both nameservers is included.
The existing SOA and NS records provide a useful reference for later testing. Recording the current serial numbers and querying both nameservers before the change gives us something concrete to compare against afterward.
The conversion should also be planned to avoid unnecessary changes at the registrar. If the existing nameserver hostnames and addresses are retained, the architectural change can take place behind the established delegation. That reduces the number of moving parts and makes verification easier.
Finally, we should confirm that ISPConfig and BIND are operating normally on both servers. Configuration errors, failed services, or incomplete synchronization should be resolved before beginning the conversion. Introducing DNSSEC into an already unreliable DNS arrangement would make troubleshooting considerably more difficult.
With the existing installation verified and its configuration preserved, we can change the DNS relationship between the servers. The next section covers replacing ISPConfig’s internal DNS mirroring with primary and secondary zones, allowing the primary to manage signing while the secondary receives the resulting zone information through BIND.
Converting Mirrored DNS to Primary and Secondary Zones
With the existing installation verified, we can change how ISPConfig distributes DNS information between the two servers. I want to keep managing DNS through ISPConfig, but let BIND handle transfers to the secondary.
ISPConfig’s internal mirroring and BIND’s zone transfers accomplish similar goals through different mechanisms. ISPConfig mirroring distributes configuration information so that each server can generate and maintain its own DNS zones. With primary and secondary DNS, one server maintains the zone and the other obtains a copy through the DNS protocol.
With DNSSEC, the difference matters. The primary server can maintain the signing keys and generate the cryptographic signatures, while the secondary receives the resulting signed zone. Both servers remain authoritative, but only one is responsible for maintaining the original zone data and its signatures.
We can make this change without reinstalling ISPConfig, moving the websites or email accounts, or replacing the existing nameserver hostnames. The work involves disabling ISPConfig’s DNS mirroring, configuring zone transfers on the primary, creating secondary zone definitions, and verifying that BIND keeps the servers synchronized.
Disabling ISPConfig DNS Mirroring
The first change is to remove the secondary DNS server’s mirroring relationship with the primary. This prevents ISPConfig from continuing to generate an independent primary zone configuration on the second machine.
In the ISPConfig administration interface, find the secondary server’s mirror-server assignment under System (the precise menu and field names depend on the ISPConfig version). Remove the assignment that makes the secondary mirror the primary server. Save the change and allow ISPConfig to process the configuration update.
The secondary server should remain part of the ISPConfig multiserver installation, with its DNS service enabled. We are changing how it receives zone information, not removing it from ISPConfig management.
Before proceeding, confirm that the mirroring relationship has been removed. The primary server should continue managing its existing DNS zones, while the secondary is ready to receive explicit secondary zone definitions.
Be careful with this step on an existing installation. Removing mirroring can affect the zone configurations previously generated on the secondary. The conversion should therefore be performed during a maintenance period, with the secondary zones configured and tested before considering the work complete.
Configuring Zone Transfers on the Primary
The primary server must allow the secondary to request copies of its DNS zones. ISPConfig provides settings for this within each primary DNS zone, allowing BIND to perform the transfers without requiring administrators to edit the generated zone configuration directly.
Open DNS → DNS Zones in ISPConfig and select a zone hosted on the primary server. Locate the field labeled Allow zone transfers to these IPs (comma separated list) and enter the IP address of the secondary nameserver.
For example, if the secondary server uses 192.0.2.20, the field would contain:
192.0.2.20
The address must be one that the primary server recognizes as the source of the secondary’s transfer requests. If the servers communicate through private networking, use the appropriate private address rather than assuming the public address will be used.
Next, enter the secondary server’s address in the Also Notify field. This allows the primary to notify the secondary when a zone changes, prompting it to check whether an updated copy is available.
Zone transfers and notifications serve different purposes. Transfer permissions determine which systems may retrieve the zone. Notifications tell secondary servers that new information may be available. Both are useful for keeping the secondary synchronized promptly.
Repeat these settings for each primary zone that the secondary will serve. Restrict transfer permissions to the intended secondary servers rather than allowing unrestricted transfers from the Internet.
After saving the changes, allow ISPConfig to update BIND’s configuration. The primary is then prepared to provide zone data to the secondary.
Creating Secondary DNS Zones
Once the primary permits zone transfers, we can configure the secondary server to request and maintain copies of those zones.
In ISPConfig, open DNS → Secondary DNS Zones and create a secondary zone for each domain. Select the secondary DNS server, enter the domain name, and identify the primary server’s IP address.
For example, a secondary zone for example.com would use the following information:
Server: Secondary DNS server
Zone: example.com
Primary DNS server: 192.0.2.10
The primary address must identify the server from which the secondary will request zone transfers. It must also correspond to an address permitted by the primary’s transfer configuration.
Save the secondary zone and allow ISPConfig to update BIND. The secondary should then contact the primary and request a copy of the zone.
Unlike ISPConfig mirroring, this process does not require recreating every individual DNS record on the secondary. BIND transfers the zone contents, including the SOA, NS, address, mail, and other records.
When DNSSEC is enabled later, the same mechanism will transfer DNSKEY records and the signatures generated by the primary.
Repeat the procedure for every domain that should be served by both nameservers. Each domain needs its own secondary zone definition unless another supported provisioning mechanism has been deliberately configured.
Verifying the Zone Transfers
Now we need to make sure BIND has actually transferred the zones.
Begin by querying the SOA record directly from each nameserver:
dig @ns1.example.com example.com SOA +noall +answer
dig @ns2.example.com example.com SOA +noall +answer
Both servers should return SOA records with matching serial numbers once synchronization has completed. The short output does not show whether the response is authoritative, so check the aa flag separately. Matching serials are a useful indication that the secondary has received the current zone, but we should also check individual records.
We can inspect the authoritative responses more closely with:
dig @ns1.example.com example.com SOA +norecurse
dig @ns2.example.com example.com SOA +norecurse
Look for the aa flag in both responses. This indicates that each server is answering authoritatively rather than relying on a recursive lookup.
Next, compare a few ordinary records:
dig @ns1.example.com example.com MX +short
dig @ns2.example.com example.com MX +short
dig @ns1.example.com www.example.com A +short
dig @ns2.example.com www.example.com A +short
The responses should agree once the secondary has obtained the current zone.
A better test is to make a harmless DNS change through ISPConfig. For example, add a temporary TXT record with a recognizable value, wait for the primary to update, and verify that the secondary receives it.
dig @ns1.example.com dns-test.example.com TXT +short
dig @ns2.example.com dns-test.example.com TXT +short
After confirming that the change reaches both servers, remove the temporary record and verify that its removal is also synchronized.
This checks the entire process, from ISPConfig updating the primary to BIND transferring the change to the secondary.
Checking BIND and Troubleshooting Transfers
If the secondary does not receive the zone, the first places to investigate are the transfer permissions, server addresses, firewall rules, and BIND logs.
On Debian installations using the bind9 service name, we can check its status with:
sudo systemctl status bind9
Recent service messages can be examined with:
sudo journalctl -u bind9 --since "30 minutes ago"
Depending on the system’s logging configuration, additional BIND messages may appear in the system logs.
Common causes of transfer failures include an incorrect primary address, a missing transfer permission, blocked TCP port 53, or a zone that has not been loaded successfully on the primary.
We can also check the configuration syntax:
sudo named-checkconf
This verifies the BIND configuration files for syntax errors, although it does not establish that zone transfers are functioning.
If the primary permits transfers only from a particular address, verify which source address the secondary actually uses. This can be especially important on multihomed servers or systems with both public and private network interfaces.
Avoid manually modifying ISPConfig-generated BIND configuration files as a permanent solution. ISPConfig may overwrite those changes when it regenerates the configuration. Wherever possible, correct the settings through ISPConfig so that the management interface remains the authoritative source for the configuration it controls.
Once both servers answer authoritatively and zone changes transfer successfully, the conversion is complete. The registrar’s nameserver delegation does not need to change if the existing hostnames and addresses remain the same. We can now enable DNSSEC on the primary server and verify that the signed zone reaches the secondary.
Enabling DNSSEC
With the primary and secondary DNS servers configured and exchanging zone information, we can enable DNSSEC. ISPConfig provides the signing functionality, while BIND distributes the resulting signed zones through the transfer mechanism we’ve already configured.
DNSSEC adds cryptographic signatures to DNS records, allowing validating resolvers to determine whether the information they receive is authentic and has not been altered. It does not encrypt DNS queries or conceal the records being requested. Instead, it provides a way to verify that DNS information comes from the expected zone and has not been modified.
Enabling DNSSEC involves two related operations. First, the authoritative zone must be signed, producing the keys and signatures used to authenticate its records. Second, the domain’s parent zone must publish a Delegation Signer (DS) record that connects the signed zone to the broader DNS hierarchy. Both are necessary to establish a complete chain of trust.
ISPConfig provides an interface for managing DNSSEC on supported DNS configurations, allowing us to enable signing without manually creating and maintaining every key and signature. We still need to understand what the software is doing, particularly when configuring the registrar and verifying the results.
Understanding DNSSEC Keys and Signatures
DNSSEC uses public-key cryptography to authenticate DNS information. The authoritative zone contains DNSKEY records holding public keys, while corresponding private keys are used to generate digital signatures. A validating resolver uses the public keys to check those signatures.
The signatures appear in RRSIG records associated with the signed record sets. For example, the address records for a website can be accompanied by signatures that allow a resolver to determine whether the returned information has been modified. Signatures also include validity periods, preventing an old signature from being accepted indefinitely.
DNSSEC deployments have traditionally distinguished between a Zone Signing Key (ZSK), used to sign the zone’s records, and a Key Signing Key (KSK), used to authenticate the zone’s DNSKEY records. Modern configurations may use a combined signing key instead. The exact arrangement depends on the signing software and its configuration.
The DS record provides the connection between the parent and child zones. It contains information derived from a DNSKEY, including a cryptographic digest. A validating resolver can use the DS record published by the parent to authenticate the corresponding DNSKEY in the child zone.
This relationship is what makes DNSSEC more than a collection of independent signatures. Beginning with a trusted root, a resolver can follow authenticated delegations through the DNS hierarchy until it reaches the domain being queried.
A signed zone is not enough by itself. The parent zone must publish the correct DS record before validating resolvers can establish the chain of trust.
Enabling DNSSEC in ISPConfig
In ISPConfig, open DNS → DNS Zones and select the primary zone that you want to sign. The zone must be assigned to the primary DNS server, where signing will be managed.
Locate the DNSSEC option in the zone settings and enable it. Save the configuration and allow ISPConfig to process the change. ISPConfig will use its configured DNSSEC support to create the necessary signing information and update the zone.
The signing details depend on the versions of ISPConfig and BIND you have installed. Administrators should confirm that their installation supports DNSSEC signing and that the required signing tools are available before enabling it on a production domain.
Once signing is complete, the primary should provide DNSKEY records and signatures. We can check for the public keys with:
dig @ns1.example.com example.com DNSKEY +dnssec
The response should contain DNSKEY records and an RRSIG covering the DNSKEY record set. Requesting the zone’s SOA record with DNSSEC information is another useful check:
dig @ns1.example.com example.com SOA +dnssec
A signed response should include the SOA record and an associated RRSIG record.
These checks show that the primary is serving DNSSEC records, but they do not establish that the signatures are valid or that the chain of trust is complete. We will test validation after publishing the appropriate DS record in the parent zone.
Before publishing the DS record, we should also confirm that the secondary nameserver has received the signed zone.
Confirming Signed Zone Transfers
The primary and secondary configuration established earlier allows BIND to transfer complete DNS zones. Once DNSSEC is enabled, those transfers include the records required to serve the signed zone, including DNSKEY and RRSIG records.
We can check the secondary directly:
dig @ns2.example.com example.com DNSKEY +dnssec
dig @ns2.example.com example.com SOA +dnssec
Both queries should return the expected DNSSEC information. Compare the DNSKEY records and signatures with the primary. Their contents should agree once the transfer has completed.
We should also compare the SOA serial numbers:
dig @ns1.example.com example.com SOA +noall +answer
dig @ns2.example.com example.com SOA +noall +answer
Once the secondary has received the current zone, the serial numbers should match. Matching serials alone do not prove that every signed record is correct. If the serials differ, investigate the zone-transfer configuration before proceeding.
A secondary that serves ordinary DNS records but lacks the expected DNSSEC records is not ready to participate in the signed delegation. Both authoritative servers must provide the information necessary for validating resolvers to authenticate their answers.
Publishing the DS Record
After confirming that both nameservers serve the signed zone correctly, the next step is to publish the DS record through the domain registrar.
ISPConfig provides the DNSSEC information needed to establish the delegation. Depending on the registrar, its interface may ask for the complete DS record or for individual values such as the key tag, algorithm, digest type, and digest.
A DS record contains four principal fields:
- Key tag
- Algorithm
- Digest type
- Digest
These values must correspond to the signing key used by the domain. They should be copied from the DNSSEC information generated for the actual zone rather than created manually or borrowed from an example.
For a fictional domain, a DS record might be represented as:
example.com. IN DS <key-tag> <algorithm> <digest-type> <digest>
The placeholders represent the values generated for the domain. They are not a usable DS record.
The registrar normally provides the mechanism for submitting this information to the parent zone. For a .com domain, the DS record is published in the .com zone, not merely in the domain’s own authoritative zone.
Adding a DS record to the domain’s own zone will not establish the chain of trust. The record must be published by the parent through the appropriate registration process.
After submitting the DS information, allow time for the registrar and registry to process the change. DNS caching can also affect when resolvers begin using the new delegation information.
Establishing the Chain of Trust
Once the parent zone publishes the DS record, validating resolvers can connect the domain’s DNSSEC information to the trusted DNS hierarchy.
The process begins with the DNS root, whose signing keys form the starting point for DNSSEC validation. A resolver follows the signed delegation through the relevant top-level domain, obtains the DS record for the domain, and uses it to authenticate the domain’s DNSKEY records.
Those authenticated keys can then be used to validate the signatures covering the domain’s DNS records. If the chain is complete and the signatures are valid, the resolver can accept the information as authenticated.
We can query the published DS record with:
dig example.com DS +dnssec
To check the parent zone directly, query one of its authoritative nameservers. For a .com domain, the following command can help identify the parent nameservers:
dig com. NS +short
We can then query an appropriate parent nameserver for the DS record:
dig @a.gtld-servers.net example.com DS +dnssec
The returned DS information should match the information supplied through the registrar.
A missing DS record means the parent has not established the DNSSEC delegation, even if the authoritative zone itself is signed. A mismatched DS record is more serious because validating resolvers may reject otherwise reachable DNS information.
The order matters: sign the zone, check both nameservers, and only then publish the DS record.
Understanding DNSSEC Maintenance
DNSSEC is not a one-time configuration that can be forgotten indefinitely. Cryptographic signatures have expiration dates, and signing keys may need to be replaced periodically. The software responsible for signing must continue renewing signatures and distributing updated zone information.
In our configuration, the primary server handles signing and the secondary receives the resulting records through zone transfers. This keeps the signing responsibility in one place, but it also means the primary must remain operational enough to maintain signatures and provide updated zones.
An extended primary-server outage introduces two separate concerns. If the secondary cannot refresh its zone before the SOA expire interval is reached, it can stop serving that zone authoritatively. DNSSEC signatures can also expire without fresh signed data. Either condition can interrupt service.
Key rollover requires additional care, particularly when replacing a key associated with the parent zone’s DS record. The new and old signing information must be coordinated so that validating resolvers can continue establishing a valid chain of trust throughout the transition.
ISPConfig and BIND can automate portions of DNSSEC management, but administrators should verify the behavior of their installed versions rather than assume that every aspect of key rollover is handled automatically.
For a personal hosting environment, routine checks of signature validity, zone synchronization, and the published DS records provide useful assurance that the configuration remains healthy.
With DNSSEC enabled on the primary, the signed zone transferred to the secondary, and the DS record published by the parent, the basic implementation is complete. The next section examines how to verify the entire arrangement using command-line tools and independent DNSSEC validators.
Verifying DNSSEC and Zone Synchronization
With DNSSEC enabled and the DS record published, we need to verify that the chain of trust is complete and that both authoritative nameservers provide valid, synchronized DNS information. Successful zone transfers alone do not establish that DNSSEC validation works, so we’ll examine the authoritative records, check responses from validating resolvers, and test how changes propagate between the servers.
DNSSEC verification is particularly important because failures can be difficult to recognize from the server itself. An authoritative nameserver may answer queries correctly while providing signatures that a validating resolver rejects. A domain can therefore appear healthy when queried directly but fail for users whose recursive resolvers enforce DNSSEC validation.
Linux already has most of the tools we need for these checks. The dig utility can query individual authoritative servers, inspect DNSSEC records, and help identify delegation problems. External validation services provide another perspective by checking the domain from outside our infrastructure.
We’ll begin by confirming that both authoritative nameservers serve the same zone information, then examine the DNSSEC records and the chain of trust. Finally, we’ll use independent validation tools to check the complete arrangement.
Checking Authoritative Nameservers
Our first concern is whether both DNS servers answer authoritatively for the domain. We should query them directly rather than rely on the system’s normal recursive resolver, which might return cached information.
The following commands request the Start of Authority records from each server:
dig @ns1.example.com example.com SOA +norecurse
dig @ns2.example.com example.com SOA +norecurse
Both responses should contain the expected SOA record and include the aa flag in the DNS header. This flag indicates that the responding server considers itself authoritative for the requested information.
The SOA record includes a serial number identifying the current version of the zone. After synchronization, the serial numbers should agree. We can display the records without the additional diagnostic information using:
dig @ns1.example.com example.com SOA +noall +answer
dig @ns2.example.com example.com SOA +noall +answer
If the serial numbers differ immediately after a change, the secondary may still be waiting for or processing an update. A persistent difference suggests that the zone-transfer process needs attention.
Matching serial numbers are useful evidence of synchronization, but they do not prove that every record is identical. We should also compare representative records, particularly those important to the services hosted by the domain.
For example:
dig @ns1.example.com example.com MX +short
dig @ns2.example.com example.com MX +short
dig @ns1.example.com www.example.com A +short
dig @ns2.example.com www.example.com A +short
The answers should agree once the current zone has reached both servers. Differences may indicate an incomplete transfer, an outdated secondary zone, or an unexpected configuration remaining from the earlier mirroring arrangement.
Inspecting DNSSEC Records
Once ordinary DNS synchronization is confirmed, we can examine the records introduced by DNSSEC. The most important are DNSKEY, which publishes the zone’s public signing keys, and RRSIG, which contains the signatures used to authenticate DNS record sets.
We can request the DNSKEY records directly from the primary:
dig @ns1.example.com example.com DNSKEY +dnssec
The response should include one or more DNSKEY records. The exact number depends on the signing configuration and whether a key rollover is underway.
Next, query the secondary:
dig @ns2.example.com example.com DNSKEY +dnssec
Both servers should provide the same current DNSKEY record set. Since the secondary receives the signed zone from the primary, it should not maintain a separate collection of signing keys.
We can also request the SOA record with DNSSEC information:
dig @ns1.example.com example.com SOA +dnssec
dig @ns2.example.com example.com SOA +dnssec
The responses should contain the SOA record and its corresponding RRSIG information. The signatures demonstrate that the zone is being served with DNSSEC data, although their presence alone does not establish that validation succeeds.
Verifying the Parent Zone’s DS Record
The DS record connects the domain’s DNSSEC keys to its parent zone. Without this connection, a signed zone may still be treated as an insecure delegation by validating resolvers.
We can request the published DS record using:
dig example.com DS +dnssec
This query normally passes through the configured recursive resolver. It can show whether the resolver sees a DS record, but we should also check the parent zone directly.
For a .com domain, we can query one of the authoritative servers for the .com zone:
dig @a.gtld-servers.net example.com DS +dnssec
The returned information should correspond to the DS values supplied through the registrar. The key tag, algorithm, digest type, and digest must match the appropriate DNSSEC signing key.
If the parent does not return a DS record, the registrar may not have completed publication, or the record may not have been submitted correctly. If the parent returns an incorrect DS record, validating resolvers may reject the domain’s DNS information.
When investigating a problem, it is worth distinguishing between a missing DS record and a mismatched one. A missing record generally leaves the delegation insecure, while an incorrect published record can cause DNSSEC validation to fail.
DNSKEY and RRSIG records show that a zone has been signed. They do not, on their own, prove that a validating resolver accepts the signatures.
Testing DNSSEC Validation
Next, check whether a validating recursive resolver accepts the domain’s DNSSEC records.
We can use dig to request DNSSEC information from a public validating resolver:
dig @1.1.1.1 example.com A +dnssec
Cloudflare’s public resolver performs DNSSEC validation. For a successfully validated answer, look for the ad flag in the DNS response header. A successful answer without ad does not, by itself, prove DNSSEC validation succeeded.
The ad flag is meaningful only when we trust the resolver and the communication path used to obtain the response. It is not a substitute for understanding which resolver performed the validation.
For a second opinion, we can query Google’s public DNS service:
dig @8.8.8.8 example.com A +dnssec
Successful responses from multiple validating resolvers provide useful evidence that the domain’s DNSSEC configuration is working beyond our own infrastructure.
One useful test is to compare ordinary validation with a query that disables DNSSEC checking:
dig @1.1.1.1 example.com A +dnssec
dig @1.1.1.1 example.com A +dnssec +cdflag
The +cdflag option sets the Checking Disabled flag, requesting that the resolver return information without enforcing normal DNSSEC validation.
If the ordinary query returns SERVFAIL while the checking-disabled query succeeds, a DNSSEC validation problem becomes a strong possibility. The difference is diagnostic rather than conclusive, since other resolver behavior can also affect the result.
A successful checking-disabled response does not mean the domain is secure. It simply helps determine whether validation is responsible for the failure.
Using External DNSSEC Validation Tools
Command-line testing gives us direct control over individual queries, but external validation tools can examine the DNSSEC chain and present the relationships between records in a more accessible form.
One service I use is DNSViz. It examines DNS delegations, DNSSEC keys, signatures, and the relationships that establish the chain of trust. Its graphical representation can help identify missing records, mismatched keys, expired signatures, and other validation problems.
Another useful resource is Internet.nl, which evaluates several aspects of domain, website, and email configuration. Its tests include DNSSEC and can help establish whether the domain meets broader Internet standards.
These tools serve somewhat different purposes. DNSViz is especially useful when investigating DNSSEC itself, while Internet.nl provides a broader view of the domain’s configuration and security.
I recommend using both after making substantial DNSSEC changes. A command-line query may establish that a particular record exists, while an external validator can reveal a problem elsewhere in the delegation or signing chain.
I also like to test from outside my own network. A configuration that appears correct when tested locally may behave differently when accessed through the public DNS hierarchy.
Testing DNS Changes and Secondary Synchronization
After confirming that DNSSEC validation succeeds, we should verify that ordinary DNS updates continue working. The configuration must remain reliable when records change, not merely when the initial signed zone is published.
A practical test is to create a temporary TXT record through ISPConfig. For example, add a record named dns-test.example.com with a recognizable value.
Once ISPConfig has processed the change, query the primary:
dig @ns1.example.com dns-test.example.com TXT +dnssec
Then query the secondary:
dig @ns2.example.com dns-test.example.com TXT +dnssec
Both should eventually return the new TXT record. Inspect the full response for an RRSIG covering the TXT record set; +dnssec requests DNSSEC records but does not itself validate them.
We should also compare the SOA serial numbers to confirm that the secondary received the updated zone. Then query a validating resolver for the TXT record:
dig @1.1.1.1 dns-test.example.com TXT +dnssec
Check for the expected TXT value and the ad flag. That last check matters: an authoritative server can return signatures even when validation fails. Together, these tests check ISPConfig updates, signing, transfers, and validation.
Afterward, remove the temporary TXT record and verify that the removal reaches both servers. Query a validating resolver again to check that the now-missing record is handled correctly:
dig @1.1.1.1 dns-test.example.com TXT +dnssec
Expect a negative answer, such as NXDOMAIN if the test name no longer exists, or NOERROR with no TXT answer if the name still exists but has no TXT record. Check that the response is authenticated. DNSSEC also authenticates the absence of records, so a signed zone must provide valid denial-of-existence information.
For an authoritative check, use dig @ns1.example.com dns-test.example.com TXT +dnssec after deleting the record and inspect the authority section for the relevant NSEC or NSEC3 records and signatures. A validating recursive resolver should also accept the negative answer.
The exact denial-of-existence mechanism depends on whether the zone uses NSEC or NSEC3. Both allow validating resolvers to authenticate negative answers rather than simply accepting an unsigned claim that a record is missing.
A successful addition and removal test provides stronger evidence than checking an unchanged zone once. It demonstrates that the normal maintenance process continues functioning with DNSSEC enabled.
Recognizing Common DNSSEC Failures
DNSSEC failures often produce symptoms that differ from ordinary DNS configuration problems. A domain may answer correctly from its authoritative nameservers while validating resolvers return SERVFAIL.
Several conditions are worth checking when this occurs:
- The DS record published by the parent does not match the domain’s DNSKEY.
- One authoritative nameserver serves outdated or incomplete DNSSEC information.
- The zone contains expired or otherwise invalid signatures.
- The primary has stopped signing updated zone information.
- The secondary is no longer receiving current zone transfers.
- A key rollover has not been coordinated correctly with the parent zone.
When something fails, I start by checking that both authoritative servers answer correctly. Then I compare their DNSSEC records with the DS record at the parent and test through a validating resolver.
This approach separates ordinary DNS availability problems from cryptographic validation problems. It also avoids making unnecessary changes to the registrar or signing configuration when the actual issue is a failed zone transfer.
When DNSSEC is working correctly, both authoritative servers provide the current signed zone, the parent publishes the appropriate DS record, and validating resolvers can authenticate the responses.
With those checks complete, we have more than a configuration that appears to work. We have evidence that the primary and secondary servers remain synchronized and that the DNSSEC chain of trust is functioning. The next concern is keeping that arrangement healthy through routine updates, key maintenance, and future server upgrades.
Maintaining DNSSEC and the DNS Infrastructure
With DNSSEC enabled and the primary and secondary nameservers working correctly, the next responsibility is keeping the configuration reliable. DNSSEC introduces cryptographic keys, signatures, and expiration dates that must remain consistent with the information published by the parent zone. The primary and secondary servers must also continue exchanging updated zone information as records change.
Fortunately, a properly configured ISPConfig and BIND installation can handle much of the routine work automatically. ISPConfig manages DNS records, BIND handles zone transfers, and the signing tools maintain the cryptographic information. Our responsibility is to verify that these processes continue functioning and to understand which changes require additional attention.
Maintenance is particularly important in a multiserver installation because a failure may not be immediately obvious. The secondary can continue answering queries while the primary is unavailable, and cached DNS records can conceal problems temporarily. DNSSEC adds another consideration: a secondary may still possess a copy of a zone even after its signatures have expired.
I do not want to check every DNS record every day. I want a few reliable checks that catch problems before they affect my websites or email. That includes monitoring the servers, checking zone synchronization, understanding key rollover, and verifying the configuration after significant changes.
Monitoring Nameserver Availability
The most basic maintenance requirement is ensuring that both authoritative nameservers remain accessible. A multiserver configuration provides redundancy only while the servers are independently capable of answering DNS queries.
We can check each server directly using dig:
dig @ns1.example.com example.com SOA +norecurse
dig @ns2.example.com example.com SOA +norecurse
Both should return authoritative responses. If one server stops responding, the other may continue providing DNS service, but the installation has temporarily lost its intended redundancy.
Monitoring should cover both UDP and TCP port 53. Most ordinary DNS queries use UDP, but TCP is necessary for zone transfers and can also be used for regular DNS queries. A nameserver that responds over UDP but cannot accept TCP connections is not fully operational.
Where IPv6 is configured, it should be monitored separately from IPv4. Successful responses over one protocol do not establish that the other is working.
For a small personal installation, a simple monitoring script or an external availability service may be sufficient. Larger installations may benefit from more comprehensive monitoring that checks each authoritative server from multiple networks.
A running server or BIND process is not enough. Monitoring needs to confirm that DNS queries actually work.
Monitoring Zone Synchronization
The secondary nameserver depends on successful zone transfers to remain current. When ISPConfig modifies a DNS record, the primary updates its zone, and BIND makes the new information available to the secondary.
The SOA serial number provides a convenient way to check synchronization:
dig @ns1.example.com example.com SOA +noall +answer
dig @ns2.example.com example.com SOA +noall +answer
After the latest update has been transferred, the serial numbers should match. A brief difference immediately after a change is not necessarily a problem, but a persistent mismatch deserves investigation.
The secondary normally learns about updates through DNS NOTIFY messages and periodic checks based on the SOA refresh interval. If a notification is missed, the periodic refresh process provides another opportunity to discover changes.
The SOA refresh, retry, and expire intervals determine how the secondary responds to missed updates and prolonged primary-server outages. These values should be reviewed as part of routine maintenance, particularly when changes to the infrastructure affect how long the secondary may need to operate independently.
DNSSEC introduces an additional limit. Even if the secondary has not reached its SOA expiration interval, its signatures may eventually expire. A secondary cannot maintain valid DNSSEC signatures indefinitely merely by retaining an old copy of the zone.
When planning for an extended primary-server outage, check both the SOA expiration interval and the remaining signature lifetime.
When checking the secondary, compare more than the SOA serial. The server also needs to answer authoritatively and serve the signed records correctly.
Maintaining DNSSEC Signatures
DNSSEC signatures have defined validity periods. Each RRSIG record includes inception and expiration times that determine when a validating resolver may accept the signature.
The signing system must periodically generate new signatures before the existing ones expire. Once the primary has updated the signed zone, those changes must reach the secondary through the normal zone-transfer process.
We can inspect the signatures with:
dig @ns1.example.com example.com SOA +dnssec
dig @ns2.example.com example.com SOA +dnssec
The RRSIG records contain timestamps that indicate when the signatures become valid and when they expire. These dates provide a useful indication of whether signing maintenance is occurring as expected.
An external DNSSEC monitoring service can check signature validity and alert us when something goes wrong. This reduces the need to inspect individual records manually.
Remember that a running BIND service does not necessarily mean signing is healthy. A signing process can fail while the nameserver continues answering queries with previously generated records.
If the signatures eventually expire, validating resolvers will reject the affected information. This can make a domain effectively unreachable for users relying on DNSSEC validation, even though the authoritative nameservers continue responding.
Monitoring signature expiration therefore deserves the same attention as monitoring zone transfers and nameserver availability.
Understanding DNSSEC Key Rollover
DNSSEC signing keys are not necessarily permanent. Keys may be replaced as part of routine maintenance, software changes, or a response to suspected compromise. Replacing a key is known as a key rollover.
A rollover must preserve the ability of validating resolvers to authenticate the zone throughout the transition. The old and new keys may need to coexist temporarily while DNS caches expire and updated signing information becomes available.
The process becomes more involved when changing a key associated with the DS record in the parent zone. Because the DS record establishes the connection between the parent and child, changing the corresponding DNSKEY may also require updating the registrar’s DNSSEC information.
The order of operations matters. Removing an old key or DS record too early can break the chain of trust for resolvers that still depend on cached information.
Modern DNSSEC implementations can automate significant portions of key management, but the available automation depends on the installed software and its configuration. We should not assume that ISPConfig automatically coordinates every registrar-side change.
Before performing a key rollover, determine which keys are being replaced, whether the parent-zone DS record must change, and how the installed ISPConfig version handles the process.
After a rollover, verify the DNSKEY records on both nameservers and confirm that the parent zone contains the appropriate DS information. Independent DNSSEC validation should succeed before the old signing information is retired.
For a personal hosting environment, unnecessary manual key rotation can introduce more risk than benefit. A working automated signing arrangement, combined with monitoring and a documented rollover procedure, is generally preferable to frequent manual intervention.
Maintaining the Servers and Software
DNSSEC maintenance also depends on the underlying operating systems and services. ISPConfig, BIND, and their supporting software should receive appropriate security updates.
Because the servers provide authoritative DNS, changes to BIND deserve particular attention. A package upgrade may alter supported features, configuration behavior, or defaults. Although routine updates should not normally require redesigning the DNS infrastructure, they should be followed by basic service and DNS checks.
On Debian, we can verify BIND’s status with:
sudo systemctl status bind9
We can also check the configuration syntax:
sudo named-checkconf
The status command checks whether the service is running; named-checkconf checks configuration syntax. Neither proves that DNSSEC validation or zone transfers work, so follow them with authoritative DNS queries.
ISPConfig upgrades deserve similar care. Since ISPConfig generates and manages portions of BIND’s configuration, an upgrade may regenerate configuration files or introduce changes in how DNSSEC settings are handled.
After a significant ISPConfig or BIND upgrade, confirm that the primary still signs its zones, the secondary receives updates, and both nameservers answer correctly.
The same checks should follow server migrations, operating system upgrades, or changes to network addresses. A DNS configuration that worked before a migration may fail afterward because of altered firewall rules, interface addresses, or transfer permissions.
Backups and Recovery Planning
A reliable DNS installation needs backups, particularly for information that cannot simply be reconstructed from the public DNS records.
The ISPConfig database contains the configuration used to manage hosted domains and services. BIND configuration files and zone data are also important, but DNSSEC introduces private signing keys that require special attention.
Public DNSKEY records can be retrieved from DNS, but the corresponding private keys cannot. Losing those keys may require generating replacements and, depending on the key involved, coordinating changes to the parent-zone DS record.
Backups should therefore include the information needed to restore the signing configuration, not merely copies of the publicly served zone records.
Private signing keys should be protected as sensitive material. They should not be placed in publicly accessible directories or copied unnecessarily between servers.
One advantage of our primary and secondary arrangement is that the secondary does not need the primary’s private signing keys to serve the signed zone. It receives the resulting signed records through BIND, reducing the number of machines that require access to the signing material.
Recovery planning should also account for the possibility that the primary becomes unavailable for an extended period. The secondary can continue serving its existing zone temporarily, but it cannot dependably maintain fresh signatures without an appropriate signing arrangement.
Restoring the primary before the secondary’s zone or signatures expire is therefore an important recovery objective.
A backup is only useful if we can restore it. Periodically testing the recovery process, even in a separate environment, is better than discovering during an outage that essential keys or configuration information were omitted.
Establishing a Practical Maintenance Routine
On a small ISPConfig installation, DNSSEC should not require daily attention. Most routine signing and synchronization work should happen automatically, leaving us to monitor the results and investigate exceptions.
A reasonable maintenance routine includes:
- Confirm that both authoritative nameservers remain reachable.
- Check that SOA serial numbers remain synchronized.
- Monitor DNSSEC signature validity and expiration.
- Verify the parent-zone DS records after signing-key changes.
- Review BIND and ISPConfig errors following updates.
- Maintain backups of the configuration and private signing keys.
- Repeat external DNSSEC validation after significant changes.
These checks can be performed manually, automated through scripts, or incorporated into an existing monitoring system using Linux process and system monitoring commands. The appropriate approach depends on the number of hosted domains and the amount of administrative time available.
For my installation, the objective is to keep the infrastructure dependable without introducing unnecessary complexity. The primary handles DNS management and signing, the secondary provides independent authoritative service, and the monitoring process confirms that the two remain consistent.
At this point, we have established a DNS infrastructure that supports both redundancy and authenticated DNS information. DNSSEC is an important part of domain security, but it addresses a specific problem: verifying the authenticity and integrity of DNS responses.
Other security measures protect different parts of the hosting environment, particularly email authentication and encrypted connections. The next section examines the measures already in place and how they complement DNSSEC.
Existing Domain and Email Security Measures
DNSSEC is an important addition to protecting a website and domain through DNS, but it does not operate in isolation. A modern web and email server relies on several complementary technologies, each addressing a different aspect of security. Some authenticate the origin of email, others protect network connections, and still others help domain owners establish policies for how their services should be used.
Over the years, I’ve implemented several of these measures on my ISPConfig installation. Some are configured through ISPConfig itself, while others depend on DNS records or the software providing the underlying services. Together, they provide protections that go beyond what DNSSEC can accomplish on its own.
We’ll examine the security measures already in use, including SPF, DKIM, DMARC, and other email security records, along with BIMI, TLS certificates, and SMTP encryption. We’ll also consider the role of IPv4 and IPv6 connectivity, since both must be accounted for when securing publicly accessible services.
Sender Policy Framework (SPF)
Sender Policy Framework, or SPF, allows a domain owner to identify which mail servers are authorized to send email using that domain in the SMTP envelope sender address. This information is published in DNS as a TXT record.
When a receiving mail server accepts a message, it can examine the connecting server’s IP address and compare it against the sending domain’s SPF policy. If the address is not authorized, the receiving server can use that result as part of its decision about whether to accept, reject, or further examine the message.
A simple SPF record might look like this:
example.com. IN TXT "v=spf1 mx -all"
This example authorizes the servers identified by the domain’s MX records and indicates that other sources are not authorized. Actual SPF policies must reflect every legitimate sending service, including any external mail providers.
SPF helps prevent unauthorized systems from impersonating a domain through the SMTP envelope sender, but it has limitations. In particular, it does not directly authenticate the address displayed in the message’s From header. Mail forwarding can also complicate SPF evaluation because the forwarding server may not be included in the original domain’s policy.
For these reasons, SPF works best as part of a broader email authentication configuration rather than as a standalone defense.
DomainKeys Identified Mail (DKIM)
DomainKeys Identified Mail, or DKIM, uses cryptographic signatures to authenticate selected portions of an email message. The sending mail server signs the message using a private key, and the receiving server retrieves the corresponding public key from DNS.
The public key is published under a selector-specific DNS name, commonly using a record resembling:
default._domainkey.example.com. IN TXT "v=DKIM1; k=rsa; p=PUBLIC_KEY"
The actual public key is considerably longer than the placeholder shown here.
When a receiving server processes a DKIM-signed message, it can verify that the signed portions of the message have not been modified and that the signature corresponds to a key published by the signing domain.
ISPConfig provides DKIM support for hosted email domains, making it possible to generate and manage the necessary keys through the hosting interface.
DKIM addresses a different problem from SPF. SPF evaluates whether the connecting mail server is authorized to send for an envelope domain, while DKIM authenticates a cryptographic signature associated with the message itself.
Neither mechanism alone guarantees that the visible From address belongs to the authenticated domain. That relationship is addressed by DMARC.
Domain-based Message Authentication, Reporting, and Conformance (DMARC)
DMARC builds on SPF and DKIM by introducing domain alignment and a published policy for handling messages that fail authentication.
A message passes DMARC when at least one supported authentication mechanism succeeds and its authenticated domain aligns with the domain in the visible From address. This helps prevent attackers from using a legitimate-looking From address while authenticating through an unrelated domain.
DMARC policies are published as DNS TXT records under the _dmarc hostname. For example:
_dmarc.example.com. IN TXT "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"
This example requests that receivers reject messages failing DMARC and identifies an address for aggregate reports.
DMARC supports three principal policy levels:
p=nonerequests monitoring without a specific enforcement action.p=quarantinerequests that failing messages be treated as suspicious.p=rejectrequests that failing messages be rejected.
A domain should generally begin with monitoring and move toward stronger enforcement after confirming that legitimate mail sources authenticate correctly.
DMARC reports can help identify unauthorized sending activity, forgotten services, and configuration errors. They also provide useful evidence when deciding whether a stricter policy is appropriate.
SPF, DKIM, and DMARC work together to provide a more complete approach to email authentication. SPF identifies authorized sending infrastructure, DKIM authenticates signed messages, and DMARC connects those results to the domain visible to the recipient.
Brand Indicators for Message Identification (BIMI)
Brand Indicators for Message Identification, or BIMI, builds on email authentication by allowing participating mail providers to display a domain’s verified brand image alongside authenticated messages.
BIMI depends on an established email authentication policy, particularly DMARC enforcement. A domain generally needs a DMARC policy of quarantine or reject, with enforcement applied to all messages, before it can meet BIMI’s authentication requirements.
The BIMI record is published in DNS, commonly under the default._bimi hostname. Its contents identify the location of an SVG image and, where required, supporting verification information.
A simplified example looks like this:
default._bimi.example.com. IN TXT "v=BIMI1; l=https://example.com/bimi.svg"
The SVG must meet BIMI’s formatting requirements. Some participating mail providers also require a Verified Mark Certificate or another accepted form of mark verification before displaying the image.
BIMI is not itself an email authentication mechanism. It relies on SPF, DKIM, and DMARC to establish the conditions under which a brand image may be displayed.
Its value is primarily in providing a recognizable visual indication associated with authenticated mail. Support varies between email providers, so publishing a BIMI record does not guarantee that recipients will see the image.
For a domain that already maintains strong email authentication, BIMI provides an additional way to build on that foundation.
TLS Certificates and HTTPS
While SPF, DKIM, and DMARC focus on email authentication, Transport Layer Security, or TLS, protects communications between systems.
For websites, TLS is normally used through HTTPS. It encrypts the connection between the browser and web server, helping prevent third parties from reading or modifying information in transit.
TLS also allows the browser to authenticate the server using a certificate issued by a trusted certificate authority. This provides assurance that the connection is being established with a server authorized to use the requested hostname.
My ISPConfig installation uses Let’s Encrypt certificates, with certificate issuance and renewal managed through ISPConfig’s integration with ACME tooling.
This automation is particularly valuable for a personal hosting environment. Certificates have limited lifetimes, and manually renewing them across multiple services would create unnecessary maintenance work.
However, TLS and DNSSEC protect different parts of the connection. DNSSEC authenticates DNS responses, while properly validated TLS certificates authenticate the server and TLS encrypts the data exchanged after the connection is established.
Using both provides complementary protection rather than duplicating the same function.
SMTP STARTTLS
Email transport also uses TLS, although the process differs from ordinary HTTPS connections.
SMTP commonly supports STARTTLS, which allows a connection that begins without encryption to negotiate TLS before transmitting email data. This protects messages while they travel between mail servers when both systems support the mechanism.
Postfix, the mail transfer agent used in my ISPConfig installation, supports SMTP STARTTLS. ISPConfig and the underlying mail configuration provide the necessary certificate and service settings.
STARTTLS improves the confidentiality of email transport, but ordinary opportunistic SMTP TLS has an important limitation. Without an additional authenticated policy, a sending server may be willing to deliver mail without encryption if the receiving server does not advertise STARTTLS.
An attacker capable of interfering with the connection may attempt to exploit that behavior by preventing the STARTTLS capability from being advertised.
This does not make STARTTLS useless. It provides valuable protection against passive observation when encryption is successfully negotiated. However, stronger mechanisms are available for establishing authenticated expectations about encrypted mail delivery.
DANE and MTA-STS are two approaches to addressing that limitation. We’ll examine them in the next section rather than treating them as protections already implemented in this installation.
IPv4 and IPv6 Connectivity
My hosting environment supports both IPv4 and IPv6. Although IPv6 is sometimes discussed alongside security improvements, using IPv6 does not automatically make a server more secure.
IPv4 and IPv6 are network protocols that provide addressing and connectivity. Both can carry encrypted or unencrypted traffic, and both require appropriate firewall rules, service configuration, and monitoring.
Supporting IPv6 expands the ways clients can reach the server. It also creates another set of network paths that must be secured.
For example, a web server might be properly restricted over IPv4 while an overlooked IPv6 firewall rule leaves an unintended service accessible. The reverse can also occur.
DNS records must reflect this dual-stack configuration. A records identify IPv4 addresses, while AAAA records identify IPv6 addresses. Services advertised through either protocol should be reachable and configured consistently.
DNSSEC protects the authenticity of both A and AAAA records. It does not distinguish between the two protocols when authenticating DNS information.
For email, IPv6 also introduces considerations involving reverse DNS, sending reputation, and the policies of receiving mail providers. These requirements should be addressed when enabling outbound email delivery over IPv6.
The practical security benefit comes from correctly configuring and maintaining both protocols, not from assuming that one is inherently safer than the other.
How These Measures Work Together
Each of these technologies addresses a particular part of domain or service security. DNSSEC authenticates DNS information. SPF, DKIM, and DMARC help receiving mail systems evaluate the legitimacy of messages. BIMI builds on established email authentication. TLS protects network communications, while IPv4 and IPv6 provide the connectivity through which those communications occur.
Their value increases when they are configured consistently. A domain with properly signed DNS records can provide authenticated information about its mail servers and email authentication policies. Those policies, in turn, help receiving systems distinguish legitimate mail from attempts at impersonation.
DNSSEC does not replace SPF, DKIM, or DMARC, and none of those technologies replaces TLS. They protect different relationships and different stages of communication.
This layered approach is particularly useful when operating personal web and email infrastructure. We may not have the resources of a large hosting provider, but we can still implement widely supported standards that reduce common risks.
There are additional measures that can strengthen this arrangement, particularly by making encrypted email transport more resistant to downgrade attacks. Some are relatively straightforward to implement, while others introduce operational dependencies that deserve careful consideration.
The next section examines those possibilities, including DANE, MTA-STS, and TLS reporting, along with the reasons I have not yet implemented every available option.
Additional Security Measures Under Consideration
With DNSSEC, email authentication, and TLS already in place, there are several additional technologies worth considering. Most address a limitation of ordinary SMTP transport security: although mail servers commonly support encryption, they do not always have a reliable way to determine whether encryption is required or whether the receiving server’s certificate should be trusted.
Two standards address this problem through different mechanisms. DNS-based Authentication of Named Entities (DANE) uses DNSSEC to authenticate information about a mail server’s TLS certificate. Mail Transfer Agent Strict Transport Security (MTA-STS) uses a published policy and the existing certificate authority system to establish expectations for encrypted SMTP delivery. SMTP TLS Reporting (TLS-RPT) complements these mechanisms by reporting problems encountered during mail delivery.
These technologies can improve security, but they also introduce new responsibilities. A configuration error that merely reduces encryption under opportunistic STARTTLS may cause delivery failures when a strict transport policy is enforced. Certificate renewal, DNSSEC key maintenance, and service availability must therefore be considered before adopting additional requirements.
For my installation, the question is not simply whether a security feature is available. It is whether the additional protection justifies the configuration and maintenance it requires. Some improvements can be introduced with relatively little effort, while others are better deferred until the supporting software provides more complete integration.
DNS-Based Authentication of Named Entities (DANE)
DANE allows a domain to publish information about the TLS credentials used by a service. This information is stored in DNS using TLSA records and authenticated through DNSSEC.
For SMTP, DANE provides a way for a sending mail server to determine whether the receiving server is expected to support TLS and whether the certificate or public key presented during the connection matches the authenticated information published by the receiving domain.
This addresses a significant limitation of ordinary opportunistic STARTTLS. Without an authenticated policy, a sending server may accept an unencrypted connection if the receiving server does not advertise STARTTLS. With properly configured SMTP DANE, a supporting sender can detect attempts to remove encryption from the connection.
DANE relies on DNSSEC because the TLSA record must be authenticated. Without DNSSEC validation, an attacker capable of modifying DNS responses could also modify the information intended to authenticate the TLS connection.
A TLSA record is published beneath a hostname identifying the service and transport protocol. For SMTP on port 25, the record name follows this pattern:
_25._tcp.mail.example.com.
The record contains information identifying how the certificate or public key should be matched. One common SMTP DANE configuration uses TLSA parameters 3 1 1, which identify a DANE end-entity association using the SHA-256 digest of the certificate’s SubjectPublicKeyInfo.
A conceptual record looks like this:
_25._tcp.mail.example.com. IN TLSA 3 1 1 <SHA256_DIGEST>
The digest must correspond to the actual public key presented by the mail server. The placeholder is not a usable value.
One advantage of this approach is when certificates are renewed while retaining the same private key. The certificate can change without necessarily changing the public key identified by the TLSA record.
However, that advantage disappears when the certificate renewal process generates a new private key.
Why I Have Deferred DANE
DANE is particularly attractive now that DNSSEC is operating correctly. The DNSSEC infrastructure provides the authenticated DNS foundation needed for TLSA records, and the existing Postfix installation already supports TLS.
The problem in my installation is certificate renewal.
ISPConfig uses ACME tooling to obtain and renew Let’s Encrypt certificates. In the version and configuration I examined, its integration with acme.sh forces the generation of a new domain private key during renewal.
That behavior matters for a TLSA record using the 3 1 1 parameters. Because the record identifies the public key, generating a new private key also changes the public key and therefore the required TLSA digest.
If the certificate is renewed without coordinating the corresponding DNS change, a sending mail server enforcing DANE may reject the connection. The mail server could have a perfectly valid new certificate while the published TLSA record still identifies the previous key.
It is possible to automate this process with custom scripts. A renewal hook could generate the new TLSA information, publish it through DNS, and coordinate the transition between old and new keys.
A reliable implementation would also need to account for DNS caching. Publishing the new TLSA record only after the certificate has changed may leave some sending servers with cached information that no longer matches the certificate being presented.
A safer rollover requires coordinating the old and new TLSA associations, allowing time for DNS changes to propagate, and only then completing the certificate transition.
I could manage that, but it would mean maintaining another custom process on a server that is otherwise largely automated.
I would prefer ISPConfig to provide native support for managing TLSA records alongside certificate issuance and renewal. Until that integration is available and suitable for my configuration, I have chosen to defer DANE rather than introduce scripts that I would need to maintain through future ISPConfig and ACME updates.
Mail Transfer Agent Strict Transport Security (MTA-STS)
MTA-STS provides another way for mail servers to establish expectations about encrypted SMTP delivery. Unlike DANE, it does not depend on DNSSEC or TLSA records. Instead, it uses DNS to advertise the existence of a policy and HTTPS to retrieve that policy.
A sending mail server that supports MTA-STS can discover the receiving domain’s policy, identify which mail servers are authorized to receive mail, and determine whether those servers must provide valid TLS certificates.
The domain publishes a TXT record under _mta-sts to identify its policy. For example:
_mta-sts.example.com. IN TXT "v=STSv1; id=2026120101"
The id value changes when the policy is updated, allowing supporting senders to recognize that they should retrieve a newer version.
The policy itself is published over HTTPS at a standardized location:
https://mta-sts.example.com/.well-known/mta-sts.txt
A policy might contain:
version: STSv1
mode: enforce
mx: mail.example.com
max_age: 604800
This example requires supporting sending mail servers to use authenticated TLS when delivering to mail.example.com. The max_age value specifies how long the policy may be cached, in seconds.
MTA-STS supports three operating modes:
noneindicates that the domain is not requesting enforcement.testingallows supporting senders to report policy failures without enforcing delivery restrictions.enforcerequires supporting senders to follow the policy.
I like that MTA-STS has a testing mode. We can publish a policy, examine reports, and correct problems before requiring strict enforcement.
There are limitations. MTA-STS relies on the existing certificate authority system and on the secure discovery and caching of its policy. Its initial discovery is not protected against every active attack, particularly when a sender has not previously obtained a valid policy.
Nevertheless, it offers useful protection against downgrade attacks for sending systems that support it and have successfully discovered the policy.
SMTP TLS Reporting (TLS-RPT)
SMTP TLS Reporting provides a way for receiving domains to learn about TLS problems encountered by sending mail servers.
A domain publishes a TXT record identifying where reports should be delivered. For example:
_smtp._tls.example.com. IN TXT "v=TLSRPTv1; rua=mailto:tls-reports@example.com"
Supporting sending mail servers can then send reports describing successful or unsuccessful TLS negotiations, including failures associated with MTA-STS or DANE policies.
These reports are typically delivered in a structured format and can be processed by reporting software. They may identify certificate validation problems, policy mismatches, unavailable mail servers, and other conditions affecting secure delivery.
TLS-RPT does not itself enforce encryption. It is a monitoring mechanism, providing information that can help administrators understand whether their transport security policies are working.
This makes TLS-RPT useful even before enabling a stricter mail policy. Reports can reveal problems that might otherwise remain unnoticed.
For my installation, TLS-RPT is one of the more straightforward additions to consider. Publishing the DNS record is relatively simple, although the reporting address must be able to receive and process the resulting messages.
As with DMARC aggregate reporting, the practical value depends on reviewing the information. A reporting address that accumulates messages nobody examines provides little operational benefit.
A reporting service or automated parser can make TLS-RPT more useful by identifying recurring failures and separating ordinary delivery problems from issues that require administrative attention.
HTTP Strict Transport Security (HSTS)
HTTP Strict Transport Security, or HSTS, provides a related form of protection for websites rather than SMTP.
When a browser receives a valid HSTS policy over HTTPS, it remembers that the hostname should be accessed only through encrypted connections for the specified period. This helps prevent subsequent attempts to downgrade the connection to ordinary HTTP.
HSTS is configured through an HTTP response header. For example:
Strict-Transport-Security: max-age=31536000
This instructs supporting browsers to remember the HTTPS requirement for one year.
Additional directives can extend the policy to subdomains or indicate that the domain is intended for inclusion in browser preload lists.
Those options deserve caution. A policy covering all subdomains can affect services that were not originally considered when the policy was introduced. Preloading introduces an additional commitment because removing a domain from browser preload lists is not immediate.
For an ISPConfig installation hosting several websites, HSTS should be evaluated for each domain and its subdomains. Every affected website must support HTTPS correctly before a broad policy is introduced.
HSTS does not replace DNSSEC or TLS certificate validation. It helps browsers maintain an HTTPS-only policy once the requirement has been established.
It is a useful additional protection, but the appropriate settings depend on the services and hostnames associated with each domain.
Improving TLS Configuration
Beyond adopting additional standards, we can improve security by periodically reviewing the TLS configuration already in use.
Apache and Postfix both support configurable TLS protocols and cipher suites. Modern configurations should avoid obsolete protocols and weak cryptographic algorithms while remaining compatible with the clients that legitimately need to connect.
The appropriate settings are not identical for websites and email.
Web browsers generally support modern TLS configurations, making it practical to require current protocol versions. SMTP delivery involves a broader collection of mail servers, some of which may have older software or more limited TLS support.
A configuration that is appropriate for HTTPS may therefore be unnecessarily restrictive for opportunistic SMTP transport. The security benefits must be weighed against the possibility of preventing legitimate mail delivery.
Certificate management also deserves periodic review. Automated renewal reduces administrative work, but we should still monitor certificate expiration and confirm that renewed certificates are installed by the services that use them.
For a server running several services, a successfully renewed certificate does not necessarily prove that every service has reloaded it. Testing the actual certificates presented by Apache, Postfix, and other TLS-enabled services provides better assurance.
External testing tools can help identify obsolete protocols, certificate problems, and other weaknesses. Internet.nl is useful for evaluating several aspects of website and email transport security, while specialized TLS testing services can provide more detailed information about individual endpoints.
The objective is to maintain a secure configuration without unnecessarily breaking compatibility or introducing custom changes that future software upgrades may overwrite.
Choosing Security Improvements That Are Practical to Maintain
Securing a server is not simply a matter of enabling every available feature. Every security feature solves a problem, but it can also give us something else to configure, monitor, and repair. If we neglect that work, the feature can cause problems of its own.
That matters when we run our own web and email servers. We have access to many of the same technologies used by large hosting providers, but we may not have dedicated staff monitoring them around the clock. Our systems need to remain secure and dependable without requiring constant attention.
Over the years, I’ve come to appreciate the difference between a configuration that works today and one that I can reasonably expect to maintain for years. A successful installation is only the beginning. Software changes, certificates expire, cryptographic keys are replaced, and standards evolve. A good security configuration needs to accommodate those changes without creating unnecessary opportunities for failure.
I am not arguing against advanced security features. DNSSEC is worth the extra work in my installation. Before adding another feature, I want to know what it protects, what can break, and whether my tools will keep it working.
Security and Reliability Must Work Together
Security and reliability belong in the same conversation. A system that is secure but frequently unavailable is not serving its intended purpose. Likewise, a reliable system that cannot protect its users or authenticate its information is missing an essential part of its responsibility.
DNSSEC provides a useful example. It protects against forged DNS information by allowing resolvers to authenticate responses. However, an incorrect DS record or expired signature can cause validating resolvers to reject legitimate information. The mechanism is doing exactly what it was designed to do, but an administrative error can make the domain inaccessible.
Similar considerations apply to encrypted email transport. Requiring authenticated TLS can protect messages against downgrade attacks, but an incorrect policy or outdated TLSA record can prevent legitimate mail servers from delivering messages.
I still want stronger security. I just want to know what happens when enforcement goes wrong before I turn it on.
When evaluating a security measure, I want to know what happens if its supporting infrastructure fails. Does the system continue operating with reduced protection? Does it generate a warning? Does it reject connections entirely? The answers influence how much monitoring and automation the feature requires.
Prioritizing Improvements by Their Benefits
Not every security feature is equally useful on every server. I prioritize them according to the services I run and what would happen if something failed.
For a web and email server, I consider the following questions useful:
- What specific threat does the improvement address?
- How much additional protection does it provide?
- What software or configuration does it depend on?
- Can it be maintained automatically?
- What happens if the configuration becomes outdated or incorrect?
- How easily can a problem be detected and corrected?
SPF, DKIM, and DMARC are good examples of complementary protections that address a common problem: email impersonation. Automated TLS certificate renewal addresses another practical concern by reducing the likelihood that certificates will expire unnoticed.
DNSSEC requires more preparation, but it provides an important capability that those technologies do not: authenticated DNS information. It also establishes the foundation for technologies such as DANE.
The Value of Automation
Automation matters because routine maintenance is easy to forget. Certificates expire, signatures need renewal, and people make mistakes.
Let’s Encrypt is an excellent example of successful security automation. Certificates that once required periodic manual attention can now be issued and renewed automatically. This makes encrypted connections practical even for small personal websites.
DNSSEC also benefits from automation. Generating signatures, renewing them before expiration, and distributing updated zones are tasks better handled by software than by an administrator repeatedly performing them by hand.
The catch is that automating half a job can leave the other half waiting to break.
My decision to defer DANE illustrates the importance of managing an entire process rather than automating its individual parts. Certificate renewal and TLSA record maintenance must work together reliably. Until ISPConfig provides suitable integration, I prefer to avoid introducing a separate collection of scripts to coordinate them.
Automation ought to save work and prevent mistakes. If I have to watch it constantly, I have not gained much.
Start with reporting where the protocol allows it. Find the legitimate traffic and correct the configuration before enforcing a policy that might reject it.
Monitoring Before Enforcement
When a security feature supports testing or monitoring, I prefer to start there.
DMARC provides a useful example. A domain can begin with a p=none policy and collect reports about authentication results before moving to quarantine or reject. This gives the administrator an opportunity to identify legitimate sending services and correct configuration problems before enforcing a stricter policy.
MTA-STS offers a similar approach through its testing mode. A domain can publish a policy and examine reports before requiring supporting senders to enforce authenticated TLS.
SMTP TLS Reporting complements this process by providing information about transport security failures. Even without an enforcement policy, reports can help identify problems with certificates, mail server availability, and TLS negotiation.
That makes TLS-RPT a good candidate for my installation. It offers additional visibility without itself changing whether a message can be delivered.
Monitoring is only useful if somebody reads the reports. Collecting reports indefinitely without reviewing them provides little practical protection.
For a personal server, the ideal arrangement is one that identifies unusual conditions and brings them to my attention without requiring me to inspect every log and report manually.
I would rather find problems in a report than discover them after a new policy starts rejecting legitimate mail.
Avoiding Unnecessary Customization
One advantage of ISPConfig is that it provides a consistent interface for managing services that would otherwise require considerable manual configuration. It does not eliminate the need to understand the underlying software, but it reduces the amount of routine work required to maintain the installation.
The more I customize outside ISPConfig, the less benefit I get from having ISPConfig manage the server.
Changes made directly to files generated by ISPConfig may be overwritten during updates or configuration changes. Custom scripts can also depend on behavior that changes between software versions.
There are certainly situations where manual configuration is appropriate. I have spent enough years administering Linux servers to appreciate the flexibility it provides. However, I also recognize the value of letting established software handle tasks it was designed to manage.
When considering an additional security feature, I prefer to determine whether ISPConfig supports it directly, whether the underlying software can manage it reliably, and whether any necessary customization can survive normal maintenance.
If a feature requires extensive custom changes, it had better be worth the work of maintaining them.
That is one reason I have chosen to wait on DANE. The technology is worthwhile, and the necessary DNSSEC foundation is now available. What I want is a dependable way to coordinate certificate renewal and TLSA maintenance without creating a separate system that I must continually supervise.
A Practical Order for Future Improvements
With the current DNSSEC infrastructure operating correctly, I can approach additional security improvements incrementally.
TLS-RPT is a reasonable early candidate because it provides information about encrypted mail delivery without introducing an enforcement requirement. It can help establish whether problems exist before deciding how to address them.
MTA-STS would be a logical next consideration. Its testing mode provides an opportunity to verify the policy and certificate configuration before moving to enforcement. The additional HTTPS policy endpoint requires maintenance, but it fits within the web infrastructure already operating on the server.
HSTS is worth evaluating for the hosted websites. Where HTTPS is already functioning reliably, it can help browsers avoid unencrypted connections. The scope of the policy needs to be considered carefully, particularly before applying it to every subdomain.
DANE remains a longer-term goal. It would make good use of the DNSSEC infrastructure established in this guide, but I want the certificate and TLSA lifecycle to be managed reliably before depending on it for mail delivery.
Routine TLS configuration reviews also remain worthwhile. Removing obsolete protocols, checking certificate installation, and verifying the behavior of web and mail services can provide benefits without necessarily introducing an entirely new security mechanism.
That is the order I would use on my server, not a universal checklist. Another installation may have different needs and a different tolerance for maintenance.
Building a System That Can Be Maintained for Years
Getting a server working is usually only the beginning. The harder part is keeping it working through years of updates, changing standards, and the occasional hardware or network failure.
A well-designed configuration should be understandable when I return to it months later. Its dependencies should be documented, its important operations should be automated where practical, and its failures should be detectable before they become serious problems.
The primary and secondary DNS arrangement developed in this guide follows that approach. ISPConfig remains responsible for managing the primary zones, BIND handles transfers to the secondary, and DNSSEC signing is concentrated on the primary server. Each component has a defined responsibility.
It is more complicated than my original single-server setup, but the extra pieces have jobs to do. It provides independent authoritative DNS service while allowing both nameservers to distribute consistent, signed DNS information.
I will judge future improvements the same way: they need to solve a real problem, work with the tools I already use, and be maintainable.
There will always be another feature to add or another setting to tighten. I would rather make steady improvements that I can maintain than build a complicated system that becomes a project of its own.
Summary
Configuring DNSSEC in an ISPConfig multiserver environment involves more than enabling a checkbox. We examined three approaches to DNS hosting: a single server using two nameserver hostnames, ISPConfig’s internal DNS mirroring, and a primary and secondary arrangement using BIND zone transfers. The third approach provides a particularly useful foundation for DNSSEC because the primary server maintains and signs the zones while the secondary receives the signed information. With the nameservers on separate machines, preferably in different geographical locations and network environments, the installation also gains protection against individual server failures.
Converting from ISPConfig mirroring to primary and secondary DNS preserves centralized management while changing how zone information is distributed. Once the zones are signed, publishing the correct DS records through the registrar establishes the chain of trust needed for DNSSEC validation. Tools such as dig, DNSViz, and Internet.nl help verify that both nameservers provide consistent information and that validating resolvers accept the signatures. Regular monitoring, reliable zone transfers, and proper management of signing keys remain essential to keeping the configuration working over time.
DNSSEC also complements the other security measures already in place. SPF, DKIM, and DMARC help protect email against impersonation, while TLS secures web and mail connections. BIMI builds on email authentication, and supporting both IPv4 and IPv6 requires consistent network security practices. Additional technologies such as DANE, MTA-STS, TLS-RPT, and HSTS offer opportunities for further improvement. Some can be introduced relatively easily, while others, particularly DANE with ISPConfig’s current certificate renewal behavior, require more careful coordination than I am prepared to maintain through custom scripts.
The larger lesson is that security and reliability must develop together. A well-designed server should not require constant manual intervention to remain secure, nor should additional protections introduce unnecessary opportunities for failure. By combining ISPConfig’s centralized management, BIND’s established zone-transfer mechanisms, DNSSEC authentication, and a practical maintenance routine, we can build an infrastructure that is more secure, more dependable, and easier to maintain. There will always be additional improvements worth considering, but the goal is not to implement every available feature. It is to make deliberate choices that protect our services while keeping them manageable for years to come.