A real DNS server — not a hosts file hack. Each server gets its own IP. Create A-records to test custom domain routing. Network-wide ad blocking included.
You're building something that depends on domain routing. Multi-tenant SaaS where acme.myapp.com goes to one tenant and beta-corp.myapp.com goes to another. Or a platform with custom domains — your customer maps store.acme.com to your app. In production, this works because DNS resolves the domain to your server. In development, it doesn't — because myapp.test resolves to nothing.
Donk runs a lightweight DNS server on your machine. Each server you register gets its own loopback IP — 127.0.0.2, 127.0.0.3, etc. — so you can run multiple servers on the same port without conflicts. Create A-records that point any custom domain to any server's IP. Enable wildcard resolution for *.myapp.test. Every device on your LAN resolves through Donk's DNS.
Video: 35–45 seconds. Creating DNS records, resolving from a browser, live query log, ad blocking toggle.