subdomainmitcnameanlegen.sh hinzugefügt
This commit is contained in:
14
subdomainmitcnameanlegen.sh
Normal file
14
subdomainmitcnameanlegen.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/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 angefügt."
|
||||
echo "-------------------------------------"
|
||||
echo
|
||||
cat /etc/dnsmasq.d/05-pihole-custom-cname.conf
|
||||
pihole restartdns
|
||||
Reference in New Issue
Block a user