cURL / Mailing Lists / curl-users / Single Mail

curl-users

Updating dynamic IP address with curl

From: Csányi Pál <csanyipal_at_gmail.com>
Date: Mon, 24 Aug 2015 19:16:04 +0200

Hi,

I want to use following command with curl:
http://[USERNAME]:[PASSWORD]@update.ipdns.hu/update?hostname=[DOMAIN]&myip=[IP]

So the command could be eg.
curl -v http://username-gmail-com:password@update.ipdns.hu/update?hostname=somename.ipdns.hu&myip=95.85.***.***

My question is: can one use this command as a cron job to execute
every say 10 minutes but so so the current IP address of the eth0
network interface should be substituted automatically into this
command at ..myip=CurrentIPaddress?

-- 
Best, Pali
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2015-08-24