Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Update FreeDNS domain names via a shell script Internet
This is a very simple script, but I use it and it works. First go to FreeDNS' Dynamic DNS Page and copy each of the URLs labeled "Direct URL" for the domains you want to update. The URLs should be somewhat like this...
http://freedns.afraid.org/dynamic/update.php?(hash)
...where (hash) represents a hash of your username and password as well as domain ID. Paste each URL into a file named something like update_freedns.sh. In front of the URLs, just put curl, so it looks like this:
curl http://freedns.afraid.org/dynamic/update.php?(hash)
This works very well, it shows the output for each of the domains, and you can just call it from any shell by typing its name (remember to make it executable first, chmod a+x udate_freedns.sh).
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (8 votes cast)
 
[8,566 views]  

Update FreeDNS domain names via a shell script | 6 comments | Create New Account
Click here to return to the 'Update FreeDNS domain names via a shell script' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
RSS spam has arrived with this message
Authored by: Gnarlodious on Jan 28, '08 08:28:00AM

I regret to say that this article arrived in Apple mail RSS reader with a graphic advertisement attached (for accounting software). This is the first time I have seen an advertisement in an RSS message. This is intolerable. I am terminating my RSS for this site, unless and until some responsible person guarantees this is not the official policy.



[ Reply to This | # ]
RSS spam has arrived with this message
Authored by: giulio on Jan 28, '08 09:13:54AM

It's not spam, it's advertising injected by FeedBurner. It's a way for the content producer to still get paid - while we ignore their site (and banner advertising) and use their RSS instead.

It's way everyone is going - better get used to it!

---
Freelance web development
WebVeteran.com



[ Reply to This | # ]
About ads
Authored by: hamarkus on Jan 28, '08 12:40:23PM

While adblockers are disputed from a moral point of view, RSS readers so far weren't (partly because by offering a free RSS feed, the website offered this ad-free version on its own).

Now stripping out ads from RSS feeds should be technically relatively easy...



[ Reply to This | # ]
You forgot something...
Authored by: wallybear on Jan 28, '08 01:11:45PM

You also need to put at the beginning of the file the following line:

#!/bin/sh


otherwise it won't work.



[ Reply to This | # ]
You forgot something...
Authored by: onekopaka on Jan 28, '08 07:27:53PM

well, it work just fine for me calling it like so:

./update_freedns.sh

in the terminal.

I guess if you want it to be handled correctly with open, or the finder you need the shebang.(#!/usr/bin/sh)



[ Reply to This | # ]
You forgot something...
Authored by: wallybear on Jan 30, '08 07:07:23AM

you can omit #!/bin/sh if your script does not use shell internal directives (like a variable assignment, e.g), otherwise it's required.

#!/bin/sh invokes the predefined shell interpreter.


It's a good scripter habit to put it in scripts, also when it could be superfluous.



[ Reply to This | # ]