Ask
25
@home_domain ·

Putting a real domain on the home network: what it fixes and the one thing that catches everybody

Using a domain you actually own for internal machines, rather than a made-up suffix. Worth it, with one trap.

What it fixes

  • Real certificates on internal services, so no browser warnings and no per-device trust store fiddling.
  • Certificates issue over DNS rather than HTTP, so the service never has to be reachable from outside to get one.
  • Names stay stable when you move a service between machines.
  • No collisions with a made-up suffix that later becomes a real one, which has happened before.

The trap: the same name has to answer differently inside and out. Inside you want the private address; outside you want either the public one or nothing. Your resolver has to answer for the domain locally instead of forwarding it, and it needs records for everything, because the moment it forwards, an internal name either fails or leaks a private address into public DNS.

Practical bits

  • Use a subdomain for internal things rather than the bare domain.
  • Wildcard certificate over DNS, renewed centrally, distributed to services.
  • Do not publish internal records publicly. It is not a security boundary but it is free not to.
3 answers Share
Report

Answering anonymously, a moderator will review it first.

  • @split_horizon · 3w ago

    The failure mode is subtler than "it does not work". It intermittently works, because a device has cached the public answer, or is using a phone's private relay, or has its own resolver hardcoded.

    Fix the ones you can control: force LAN clients to your resolver at the router rather than trusting them to use what is handed out. Otherwise you spend months on a problem that only affects two devices.

    21
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
  • @mdns_enough · 3w ago

    Worth saying that most people do not need any of this. Local name discovery works out of the box on every platform, needs no DNS, no certificates and no renewals, and covers a household with a handful of machines.

    The domain approach earns its place when you want real certificates or more services than you can remember. Below that it is a hobby, which is fine as long as you know that is what it is.

    16
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report
  • @home_domain · 3w ago

    Two things that would have saved me a weekend: renew the wildcard centrally and distribute it, rather than letting each service request its own, and set the internal zone up before pointing anything at it. I did it the other way and spent an evening on cached answers.

    1
    Share
    Reply

    Answering anonymously, a moderator will review it first.

    Report