nginx-dnswall/make-domains.sh

11 lines
263 B
Bash
Raw Permalink Normal View History

2024-10-14 19:09:38 +00:00
#!/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