From 104b2df98a70e6aa94e3697419e46f63ed7b749f Mon Sep 17 00:00:00 2001 From: Andreas Bohne-Lang Date: Fri, 5 May 2023 18:08:41 +0200 Subject: [PATCH] Create dns_add_dnsmasq Add _acme-challenge for dnsmasq - a lightweight DHCP and caching DNS server --- dns_scripts/dns_add_dnsmasq | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 dns_scripts/dns_add_dnsmasq diff --git a/dns_scripts/dns_add_dnsmasq b/dns_scripts/dns_add_dnsmasq new file mode 100644 index 0000000..596f101 --- /dev/null +++ b/dns_scripts/dns_add_dnsmasq @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +# Make sure you enable in the /etc/dnsmasq.conf this line conf-dir=/etc/dnsmasq.d/,*.conf + +echo "txt-record=_acme-challenge.\${1},\$2" > /etc/dnsmasq.d/acme-challenge.conf + +systemctl restart dnsmasq