11 lines
263 B
Bash
11 lines
263 B
Bash
|
#!/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
|