This script collectin is in alpha state and only useable on linux systems. Tested with debian 9 and ubuntu 16.04.
certbot certonly --dry-run --manual --preferred-challenges=dns --manual-auth-hook ./certbot-dns-auth.sh -d example.com