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
parent
commit
f1dcca5e73
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions
  1. +7
    -0
      dns_scripts/dns_add_dnsmasq
  2. +7
    -0
      dns_scripts/dns_del_dnsmasq

+ 7
- 0
dns_scripts/dns_add_dnsmasq View File

@ -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

+ 7
- 0
dns_scripts/dns_del_dnsmasq View File

@ -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

Loading…
Cancel
Save