Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- subnets='10.100.12 10.100.13 10.100.14'
- for subnet in $subnets ;do
- echo "===== custom aws resolver ===="
- for i in $(seq 1 254);do
- echo "${subnet}.${i} ip-$(echo ${subnet}|awk -F'.' '{print $1}')-$(echo ${subnet}|awk -F'.' '{print $2}')-$(echo ${subnet}|awk -F'.' '{print $3}')-${i}.ec2.internal"
- done
- done
Add Comment
Please, Sign In to add comment