Return to Snippet

Revision: 880
at August 17, 2006 20:53 by yuconner

Initial Code
newip=`wget -o /dev/null -O - | cut -f1 -d' ' | sed -n 1p`
presentip=`host | sed -n 1p | cut -d' ' -f4`
if [ "$newip" != "$presentip" ]; then; fi

Initial URL

Initial Description
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 "" to the correct hostname
For example to update zoneedit zone:
wget -O - --http-user= --http-passwd= ''
(complete user, pass and host)

Initial Title
Dynamic IP update (to DNS service like zoneedit or dyndns) inside a local LAN or behind a router

Initial Tags
linux, ip

Initial Language