Browse Source
Merge pull request #804 from bohnelang/master
dns_add and dns_del for dnsmasq - a lightweight DHCP and caching DNS server
pull/811/head
Tim Kimber
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
0 deletions
-
dns_scripts/dns_add_dnsmasq
-
dns_scripts/dns_del_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 |
|
|
|
@ -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 "" > /etc/dnsmasq.d/acme-challenge.conf |
|
|
|
|
|
|
|
systemctl restart dnsmasq |