Posted By

yuconner on 08/17/06


linux DNS ip LAN

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


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

 / Published in: Bash

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)

  1. #!/bin/sh
  2. newip=`wget -o /dev/null -O - | cut -f1 -d' ' | sed -n 1p`
  3. presentip=`host | sed -n 1p | cut -d' ' -f4`
  4. if [ "$newip" != "$presentip" ]; then; fi

Report this snippet  


RSS Icon Subscribe to comments
Posted By: Jacky888 on August 8, 2018

lenovo tb 7304f root bestandroidtoroot

You need to login to post a comment.