SimpleACME
Sign inCreate account →
Traefik Networking

Traefik and Pi-hole split DNS: private addresses do not have to match public records

Diagnose Traefik HTTPS with Pi-hole overrides by separating local routing, public challenge resolution and certificate selection, including SimpleACME delegation.

A LAN client can resolve dashboard.home.example.com to a private Traefik address while public DNS returns something different. That does not inherently invalidate a certificate for the hostname. Certificates identify names, while DNS answers determine where a particular client connects. Problems arise when the client reaches an unintended endpoint, the proxy selects the wrong certificate, or the issuing client cannot see the public challenge information it expects.

SimpleACME is our recommended delegated-validation service when the certificate path should avoid a primary DNS provider's API integration. It can fit a split-DNS design cleanly, but it is not a repair for a router that lacks hairpin routing or a resolver returning the wrong application address. Diagnose those layers independently.

Step 1: Trace one LAN client's request

From a representative device, determine which resolver answers the service name and what address it returns. Check the browser's own resolver behavior if it differs from operating-system tools. Confirm that the returned address belongs to the Traefik listener intended for LAN users. This is more useful than assuming every device uses Pi-hole because the router advertises it.

If the local answer correctly points at Traefik, test whether the expected router handles the hostname. A different default certificate may mean the request reached Traefik but did not select the expected TLS configuration. Keep this evidence separate from any ACME renewal error in the logs.

Step 2: Understand the certificate's name coverage

The name in the browser must be covered by the certificate served on that connection. A wildcard can cover one level beneath its parent, but it does not automatically include the parent or arbitrary deeper labels. Make the requested certificate names agree with the service naming scheme rather than asking the proxy to compensate for an ambiguous plan.

A public and private address can both serve valid certificates for the same hostname. They do not necessarily need the identical certificate or private key. The important requirement is that the endpoint the client actually reaches proves the expected identity through an appropriate certificate chain.

Step 3: Preserve the public challenge lookup

A local DNS override for an entire zone can accidentally hide the public challenge CNAME from the certificate client's resolver. If prechecks fail, inspect the challenge owner specifically. An application lookup that works on the LAN does not establish that challenge lookups use the correct authority.

Prepare the intended domain in SimpleACME and keep its challenge delegation in the authoritative public zone. Configure Traefik's supported acme-dns integration with the existing registration and persistent state. Review the client version's resolver and storage settings rather than copying options from a different major release.

Verify renewal and normal traffic separately

Once configuration works, test the local browser path, the desired remote path and the renewal path. Record which component owns each. The advantage of SimpleACME here is a stable DNS validation interface, not an automatic change to Pi-hole, router routing or Traefik's host-matching rules. A clear split makes future failures much easier to locate.

An operational worksheet for this setup

Test one hostname from three places: the LAN client, the proxy's own environment and the external perspective required for the public challenge. Record the answer and purpose of each test. Different application addresses can be intentional; an absent challenge record in the issuing client's view is a different issue. This avoids treating every difference as a DNS inconsistency that must be removed.

For Traefik, keep router selection and certificate issuance observations separate. If the client receives a default certificate, inspect the connection name and selected TLS configuration. If issuance fails, inspect the ACME error and delegated update path. A systematic split prevents a working validation setup from being repeatedly changed to compensate for an unrelated hostname-routing problem on the LAN.

Prepare the SimpleACME side before changing the endpoint

For Traefik proxies reached through Pi-hole local DNS, use the account portal to prepare the intended domain and inspect the exact configuration it provides. Make the single-domain or wildcard choice agree with the names your client will request. The free single-domain preparation workflow is useful for reviewing the setup, but it does not authorize live DNS updates. Paid update access, or an appropriate administrator-granted entitlement, must be active before unattended validation depends on that domain.

Copy the required challenge owner and target exactly into your authoritative DNS panel. Keep a record of who owns this entry and why it must remain in place. Do not replace normal address, mail or application records as part of this limited change. If the portal reports an incomplete CNAME check, investigate the published record before treating a payment or client reinstall as the solution. A stable correct delegation is what makes future challenge updates repeatable.

Protect the credentials that remain

Removing your primary DNS provider's API credential from Traefik proxies reached through Pi-hole local DNS is a useful reduction in scope, not the elimination of all secrets. The delegated registration can still authorize certificate validation for its intended name. Protect it as a security-sensitive credential and expose it only to the component that performs updates. Keep it out of public repositories, pasted logs and reusable example files intended for other people.

The private key for dashboard.home.example.com remains a separate responsibility of the client and deployment environment. Limit access to the processes that need it and use a protected backup or recovery process. If a key or registration is compromised, review the appropriate revocation, credential rotation and DNS-delegation removal steps for that incident. Do not assume that deleting a dashboard entry automatically revokes every previously issued certificate or removes keys already copied to another machine.

Read each success signal for what it proves

When Traefik runs, distinguish configuration readiness, challenge publication, certificate issuance and endpoint activation. A CNAME check confirms an aspect of DNS setup. An accepted TXT update confirms that an authorized update occurred. A successful ACME order confirms issuance. A client connection inspecting the running endpoint confirms what certificate users actually receive. These are related events, but they are not interchangeable evidence.

Keep those stages separate in the operating notes for Traefik proxies reached through Pi-hole local DNS. If a renewal fails, identify the last stage that succeeded and investigate the next boundary. This avoids blaming a payment status for a service reload failure, or changing a working proxy because the challenge owner was entered incorrectly. SimpleACME activity is useful visibility into validation changes, while the client and endpoint observations are required to establish the complete certificate outcome.

Test the unattended path, not just the setup session

After the first successful installation, exercise the supported renewal test for Traefik where available. Use the task identity, file access and network path that routine automation will use, rather than relying only on an interactive administrator session. Verify that the scheduled process can find the registration and write the state it owns. Keep a supported rollback path before testing changes that may restart a production listener.

Then inspect dashboard.home.example.com from a representative client. Confirm the covered name, validity period and chain, and check that the application still behaves as expected. Where the product has a separate deploy or reload hook, confirm its result explicitly. Testing a replacement file without exercising activation leaves an important part of the renewal path unproven. Record the observations so the next administrator knows what a healthy run looks like.

Monitor the endpoint and preserve a recovery route

For Traefik proxies reached through Pi-hole local DNS, send failures to an operational destination that someone will actually monitor. A task that logs locally but never alerts can remain broken until the currently served certificate expires. Check the certificate presented by the endpoint as well as the automation logs, because a client can obtain a replacement successfully while an application continues serving an older certificate.

Keep a protected restoration plan for the client account, delegated registration and deployment configuration. During a move or container recreation, verify those pieces individually instead of assuming that application data includes certificate state. Preserve the challenge CNAME when moving the authoritative DNS zone. Record who can approve removing that delegation when the service is retired. Recovery is more dependable when the necessary state and ownership are identified before the incident.

FAQ

Must the LAN IP match the public A record?

Not for the certificate name to match. The browser needs a certificate covering its requested hostname at the endpoint it reaches. Local DNS can legitimately send LAN clients to a different private address, provided routing and certificate presentation are configured consistently.

Why does the browser behave differently from my DNS command?

It may use a different resolver path or cached answer. Check the actual browser and device configuration before changing public DNS or requesting more certificates. A difference in name resolution can send the browser to an unintended endpoint that serves a different certificate.

Can a local zone override interfere with ACME prechecks?

Yes, if it hides the public challenge information from the resolver used by the issuing client. Inspect the challenge owner separately from the application name. A working local application lookup is not proof that the client's validation lookup follows the correct public authority.

Does SimpleACME replace Pi-hole or hairpin routing?

No. It handles authorized delegated DNS challenge updates. Keep Pi-hole responsible for local answers and the network responsible for the intended route. The advantage is a stable validation boundary that can be debugged independently from the rest of the LAN path.

Prepare your own domain

Create your SimpleACME account and review the setup for your intended name before enabling live updates. Use the matching client guide, preserve the challenge CNAME and finish with a check of the certificate your application actually serves.

KEEP EXPLORING

A little more clarity.

ONE CNAME. A REPEATABLE WORKFLOW.

Your next certificate. A little less complicated.

Keep your DNS provider and your ACME client.
Prepare your domain before activating paid updates.

Create your account →Explore the integrations