mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 09:39:56 +00:00
17 lines
279 B
Bash
Executable File
17 lines
279 B
Bash
Executable File
#!/bin/sh
|
|
|
|
DOMAINS=domains.txt
|
|
IPS=ips.txt
|
|
|
|
. ./dns-cloudflare.sh
|
|
|
|
paste "$DOMAINS" "$IPS" | while read domain ips; do
|
|
if ! [ "$domain" ]; then
|
|
echo "⚠️ No more domains!"
|
|
exit 1
|
|
fi
|
|
_clear_zone "$domain"
|
|
_populate_zone "$domain" $ips
|
|
done
|
|
echo "✅ All done."
|