DNS security: DNSSEC, CAA, forgotten subdomains and subdomain takeover
DNS is the address book of the internet – and is often forgotten when securing websites. PHPCheck.net checks these points in the "DNS" section.
1. DNSSEC: protection against forged DNS answers
Without DNSSEC, an attacker on the network path can forge DNS answers and redirect visitors or emails to their own servers. DNSSEC signs the DNS data so that resolvers can detect tampering.
- Enable it: with most DNS providers and hosts, one click in the DNS settings is enough. If DNS and the domain are with different providers, you need to add the DS record at your registrar.
- Careful when moving: when changing DNS provider, disable DNSSEC first or hand over the keys properly – an outdated DS record makes the domain unreachable (SERVFAIL).
2. CAA: who may issue certificates?
A CAA record defines which certificate authorities may issue TLS certificates for your domain. All others must refuse.
example.com. CAA 0 issue "letsencrypt.org"
example.com. CAA 0 issuewild ";"
example.com. CAA 0 iodef "mailto:security@example.com"
The second line forbids wildcard certificates, the third names an address for reports. If you use several providers (e.g. Let’s Encrypt and
your host), add one issue line for each.
3. Forgotten subdomains
Every publicly trusted TLS certificate is recorded in the Certificate Transparency logs – including all
host names. This makes practically every subdomain with HTTPS publicly discoverable, including dev., test. or old-shop..
- Test and legacy systems often run outdated software (e.g. old PHP versions) without updates.
- Admin interfaces (
admin.,phpmyadmin.) should not be exposed to the internet unprotected – better use a VPN or IP allow list. - Delete subdomains you no longer need from DNS and shut down the systems.
4. Dangling CNAMEs and subdomain takeover
If a subdomain points via CNAME to an external service (cloud hosting, shop platform, CDN) that no longer exists, a third party may be able to create an account with exactly that name there – and serve content under your subdomain (subdomain takeover). This is ideal for phishing and can put cookies of the main domain at risk.
Fix: whenever you cancel an external service, also delete the related DNS record. PHPCheck.net reports CNAME records whose target no longer exists.
5. At least two name servers
If the only name server fails, the domain including email becomes unreachable. Common DNS providers offer several name servers anyway – with your own servers, make sure they are redundant in different networks.