dnsmasq. A lightweight DHCP and caching DNS server.
docker run --name dnsmasq -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN rossbannerman/dnsmasq:latest
.
Use --dns=x.x.x.x
to pass your own upstream server(s) eg. docker run --name dnsmasq -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN --dns 1.1.1.1 rossbannerman/dnsmasq:latest