https://dev.to/stjohnjohnson/internal-domains-with-dnsmasq-and-pi-hole-4cof

February 29, 2020 ยท View on GitHub

all: build test clean

test: @echo "========== Internal Domains ==========" dig @127.0.0.1 haas.example.com +short dig @127.0.0.1 pihole.example.com +short dig @127.0.0.1 plex.example.com +short dig @127.0.0.1 go +short dig @127.0.0.1 modem +short

@echo "========== External Domains =========="
dig @127.0.0.1 google.com +short
dig @127.0.0.1 github.com +short

build: docker-compose up -d until curl -f -I http://127.0.0.1; do sleep 1; done

clean: docker-compose down -v