Ruede
07.11.08, 16:26
wenn ich den link aufrufe, angepasst natürlich sehe ich das:
"nochg 78.42.*.*"
im netz hab ich das hier gefunden...:
#!/bin/ash
#Get the current ip and put it into /var/tmp/tmp.ip
wget -q http://checkip.dyndns.com/index.html --output-document=/var/tmp/tmp.ip
#Parse the answer to get only the ip and put it into /var/tmp/new.ip
sed -e 's/^.*Address: //' -e 's/<.*$//' /var/tmp/tmp.ip > /var/tmp/new.ip
if [ "`cat /var/tmp/new.ip`" = "`cat /var/tmp/old.ip`" ]
then echo "No new IP";
else wget -q http://LOGIN:PASSWORD@www.ovh.com/nic/update?myip=`cat /var/tmp/new.ip`\&hostname=DOMAIN\&system=dyndns --output-document=/var/tmp/upd.ip
echo "New IP";
cat /var/tmp/upd.ip;
rm /var/tmp/upd.ip;
fi
rm -f /var/tmp/old.ip
rm /var/tmp/tmp.ip
mv /var/tmp/new.ip /var/tmp/old.ip
http://www.nslu2-linux.org/wiki/HowTo/DynDNSupdate
"nochg 78.42.*.*"
im netz hab ich das hier gefunden...:
#!/bin/ash
#Get the current ip and put it into /var/tmp/tmp.ip
wget -q http://checkip.dyndns.com/index.html --output-document=/var/tmp/tmp.ip
#Parse the answer to get only the ip and put it into /var/tmp/new.ip
sed -e 's/^.*Address: //' -e 's/<.*$//' /var/tmp/tmp.ip > /var/tmp/new.ip
if [ "`cat /var/tmp/new.ip`" = "`cat /var/tmp/old.ip`" ]
then echo "No new IP";
else wget -q http://LOGIN:PASSWORD@www.ovh.com/nic/update?myip=`cat /var/tmp/new.ip`\&hostname=DOMAIN\&system=dyndns --output-document=/var/tmp/upd.ip
echo "New IP";
cat /var/tmp/upd.ip;
rm /var/tmp/upd.ip;
fi
rm -f /var/tmp/old.ip
rm /var/tmp/tmp.ip
mv /var/tmp/new.ip /var/tmp/old.ip
http://www.nslu2-linux.org/wiki/HowTo/DynDNSupdate