#!/usr/bin/env bash # Simple script to update the challtestserv mock DNS server when testing DNS responses fulldomain="${1}" token="${2}" curl --silent -X POST -d "{\"host\":\"_acme-challenge.${fulldomain}.\", \"value\": \"${token}\"}" http://10.30.50.3:8055/set-txt