Updates your no-ip.org account with curl

curl -u $USERNAME:$PASSWORD "http://dynupdate.no-ip.com/nic/update?hostname=$HOSTNAME"

4
By: drerik
2012-08-16 05:45:03

These Might Interest You

  • Your IP is resolved by OpenDns Server (like a caller ID telephone, every server knows who is calling ;-) Change user:password by yours Be Happy Show Sample Output


    2
    curl -i -m 60 -k -u user:password 'https://updates.opendns.com/account/ddns.php?'
    m33600 · 2010-02-07 02:40:38 2
  • I use this in a script on my openwrt router to check if my DynDNS needs to be updated, saves your account from being banned for blank updates. Show Sample Output


    1
    nslookup commandlinefu.com|sed 's/[^0-9. ]//g'|tail -n 1|awk -F " " '{print $2}'
    thundernode · 2009-08-07 17:32:55 0
  • Update a Mandriva Linux system with any pending updates. This command needs to be run with root privilege. Using the "--force" option answers "yes" to any interactive prompts thus allowing the updates to be left unattended to completion. NB if there is an update for glibc and/or a new kernel then the system would need to be rebooted for these to take effect. A prerequisite for running "urpmi --auto-update" is to have correctly defined urpmi media sources (which can be done by visiting http://easyurpmi.zarb.org/). If there are no new updates the the message "Packages are up to date" is shown. Show Sample Output


    0
    urpmi --auto-update --force # apply all pending updates (Mandriva Linux)
    mpb · 2009-03-28 14:59:26 0
  • Shows which packages from the official repositories (not aur) have updates available. For most accurate output, the mirrors and package lists should be up to date.


    1
    pacman -Qu
    ibnarrashid · 2011-03-20 20:23:49 0

What Others Think

Instead of having to set HOSTNAME = you can replace the $HOSTNAME variable with `hostname` which will load in your current server's hostname.
jawsome · 303 weeks and 2 days ago
you can add &myip= in order to manually set the ip address
gabriel · 91 weeks and 5 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: