Files
container.training/prepare-labs/map-dns.sh
Jérôme Petazzoni ab6ed864e3 🔧 Tweak DNS scripts
2024-05-28 19:03:07 +02:00

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."