Skip to content

Commit 104b2df

Browse files
authored
Create dns_add_dnsmasq
Add _acme-challenge for dnsmasq - a lightweight DHCP and caching DNS server
1 parent b758339 commit 104b2df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dns_scripts/dns_add_dnsmasq

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# Make sure you enable in the /etc/dnsmasq.conf this line conf-dir=/etc/dnsmasq.d/,*.conf
4+
5+
echo "txt-record=_acme-challenge.\${1},\$2" > /etc/dnsmasq.d/acme-challenge.conf
6+
7+
systemctl restart dnsmasq

0 commit comments

Comments
 (0)