Skip to content

Commit f1dcca5

Browse files
authored
Merge pull request srvrco#804 from bohnelang/master
dns_add and dns_del for dnsmasq - a lightweight DHCP and caching DNS server
2 parents b758339 + e1be762 commit f1dcca5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-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

dns_scripts/dns_del_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 "" > /etc/dnsmasq.d/acme-challenge.conf
6+
7+
systemctl restart dnsmasq

0 commit comments

Comments
 (0)