docker-bind provides a bind9 named setup on an alpine image for self hosted dns, clean and simple.
it can be set up to do recursion.
curl -LO \
https://raw.githubusercontent.com/gottaeat/docker-recursive-bind/master/\
docker-compose.yml
mkdir data/cat <<EOF > ./data/extra.confzone "." { type hint; file "/etc/bind/root-nov6";};EOFCF nameservers are used for an example, can be swapped out.
cat <<EOF > ./data/extra.confzone "." { type forward; forwarders { 1.1.1.1; 1.0.0.1; };};EOFextra configuration details can also be added to ./data/extra.conf.
docker compose up -ddig example.com @127.0.0.1 -p53