Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ip in hostA.com hostB.com hostC.com;
- do
- host $ip | grep "has address" | sed 's/.*has address //' |
- awk '{print "allowtt" $1 ";" }' > ./allowedip.inc
- done
- $ host google.com|grep -oP "has address K.*"
- 216.58.214.238
Add Comment
Please, Sign In to add comment