Within this guide I will guide you step by step throu a setup of a local DNS setup to resolve local services as well as services running within Docker. Within this guide I will use Homebrew to install the required services, please follow the official instructions to install it.
We will use .lan
as toplevel domain for local name resolution, all our
services will be available by this name. To get it working on nearly all
environments I will also attach a private IP to our loopback network interface
where I have choosen 10.254.254.254
, this is required to get the host and the
Docker services resolving the same names.