Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: pbearne on October 05, 2004, 02:10:56 PM
-
Hi
I have SME server configured as below
adsl ->firewall/router/wireless ->(internet cafe) ->DMZ(sme server -> Office network ->ip web cam)
Can see out no problem
My problem is How to keep dyndns updated preferable using the sme server
the build in dyndns updater just uses the external ip address which in this case isn't right
Paul Bearne
-
Paul
I'm not sure what you mean by "external ip address isn't right" ... you mean (internet cafe)-IP isn't correct external IP?!
Anyway:
Updating dyndns.org is essentially a very easy process...
If you just fill in the 4 Variables below
(note 3, DOMAIN,USERID,PASSWD, are actually constants)
you can execute the script once every ip change...
#!/bin/sh
IPADDR=
DOMAIN=
USERID=
PASSWD=
wget -q -O /tmp/dyndns.log \
--user-agent="e-smith-dyndns.org/0.1" \
http://"$USERID:$PASSWD"@members.dyndns.org/nic/update?\
system=dyndns\&hostname="$DOMAIN"\&myip="$IPADDR"\&wildcard=ON
Regards
Reinhold
PS: The snippet is stolen" from inside SME and if you need to know more just post 8-)