Guest User

Untitled

a guest
Oct 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. for ip in hostA.com hostB.com hostC.com;
  2. do
  3. host $ip | grep "has address" | sed 's/.*has address //' |
  4. awk '{print "allowtt" $1 ";" }' > ./allowedip.inc
  5. done
  6.  
  7. $ host google.com|grep -oP "has address K.*"
  8. 216.58.214.238
Add Comment
Please, Sign In to add comment