14 lines
493 B
Bash
14 lines
493 B
Bash
#!/bin/bash
|
|
|
|
clear
|
|
echo "bitte als SUDO ausfuehren"
|
|
echo "fragt nach einer Subdomain und legt diese mit subdomain.nauheimtech.duckdns.org in PiHole an"
|
|
echo
|
|
read -p "Bitte geben Sie die Subdomain: " wort
|
|
zeile="cname=${wort}.nauheimtech.duckdns.org,infrastruktur.fritz.box"
|
|
echo $zeile >> /etc/dnsmasq.d/05-pihole-custom-cname.conf
|
|
echo "Die Zeile wurde erfolgreich angefuegt."
|
|
echo "--------------------------------------"
|
|
echo
|
|
cat /etc/dnsmasq.d/05-pihole-custom-cname.conf
|
|
pihole restartdns |