Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/local/bin/bash
- route del 0.0.0.0/1
- ROUTE=`netstat -nr | grep 128 | awk '{print $2}'`
- domains="2ip.ru whatismyip.com "
- for i in $domains
- do
- IP=`nslookup $i | grep Addr | grep -v "#" | cut -d " " -f2 | tr "\n" " "`
- for j in $IP
- do
- route add -host $j $ROUTE
- done
- done
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement