Today, 20th March 2023, Ukraine is still bravely fighting for democratic values, human rights and peace in whole world. Russians ruthlessly kill all civilians in Ukraine including childs and destroy their cities. We are uniting against Putin’s invasion and violence, in support of the people in Ukraine. You can help by donating to Ukrainian's army.
Assume you have to manage multiple domains in your local setup, for example, you have a multi-workspace host-name based app (like web-version of Slack in the past):
Or multinode scaled DNS-based app. All these cases make management via editing
/etc/hosts file not super handly
|SCRIPTDIR="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"|
|# TODO: add record to /etc/systemd/resolve.conf file|
|docker build $SCRIPTDIR -t tracklify_local_bind|
|sudo docker run -p 127.0.0.1:53:53/udp --restart=always -d tracklify_local_bind|
|ADD dnsmasq.conf /etc/dnsmasq.conf|
|# this is file with DNS rules, here we map all domain.loc and subdomains to 127.0.0.1|
Run DNS container:
Resolve record in
/etc/systemd/resolved.conf to look like:
3. Restart systemd-resolved
sudo systemctl restart systemd-resolved
4. Test if it's working run.
In case it didn't work try restarting Linux.
After the restart just test if the
host the command returns host for