Welcome To Snipplr
Everyone's Recent Bash Snippets Tagged ip
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« Prev 1 Next »
Use wget and sed to get your public IP adress (instead of firing up firefox and visting whatismyip.com). Usefull in scripts where you need your public IP adres.
There are probably better ways, maybe even a GNUtool that I missed?
0
694
posted 14 years ago by berkes
Bash
Dynamic IP update (to DNS service like zoneedit or dyndns) inside a local LAN or behind a router
Useful if you are behind a router, or in a LAN, and you didn't make (or can't have) a direct ppp connection to the ISP.
Change "myweb.com" to the correct hostname
For example to update zoneedit zone:
#update_dns_ip.sh
wget -O - --http-user= --ht...
0
719
posted 17 years ago by yuconner
« Prev 1 Next »