Can't curl outside of localhost on LAN

I got something like this to “work”

example.com {
  respond "hello"
}

But the issue I’m having right now is that I can’t access it on LAN but WAN works fine.
The issue is listed here Using Caddy as a reverse proxy in a home network and the solution is to make DNS which I’m going to do now