nginx-dnswall/make-domains.sh
2024-10-14 21:09:38 +02:00

11 lines
263 B
Bash
Executable File

#!/bin/bash
echo "$1 dns_server;" > domains.txt
for d in $(cat subdomains.txt); do
echo "$d.$1 dns_server;" >> domains.txt
done
echo "$1 dns_server_v6;" > domains_v6.txt
for d in $(cat subdomains.txt); do
echo "$d.$1 dns_server_v6;" >> domains_v6.txt
done
exit 0