Skip to content

Latest commit

 

History

History
91 lines (67 loc) · 2.88 KB

README.textile

File metadata and controls

91 lines (67 loc) · 2.88 KB

A Dynamic DNS client for domains parked at afraid.org.

You can explore and update your IP address from Ruby or the command line.
The command-line program can be configured to run on an interval using cron.

Usage

On the command line…

Checking out your afraid.org configuration


% updateafraid -user YOURUSERAME -password YOURPASSWORD
You have 5 domains:
yourdomain.com  (209.6.22.66)
ftp.yourdomain.com      (209.6.22.66)
irc.yourdomain.com      (209.6.22.66)
mail.yourdomain.com     (209.6.22.66)
www.yourdomain.com      (209.6.22.66)

Updating a single domain


% updateafraid -user YOURUSERAME -password YOURPASSWORD -domain yourdomain.com
ERROR: Address 209.6.22.66 has not changed.

Updating all of your domains at once


% updateafraid -user YOURUSERAME -password YOURPASSWORD -all
yourdomain.com - ERROR: Address 209.6.22.66 has not changed.
ftp.yourdomain.com - ERROR: Address 209.6.22.66 has not changed.
irc.yourdomain.com - ERROR: Address 209.6.22.66 has not changed.
mail.yourdomain.com - ERROR: Address 209.6.22.66 has not changed.
www.yourdomain.com - ERROR: Address 209.6.22.66 has not changed.

In Ruby…


%w{rubygems updateafraid}.each {|r| require r}
include Updateafraid

# Connect to afraid.org and figure out what's what
afraid = AfraidAccount.new(username, password)

# Display a formatted list of your domains to STDOUT
afraid.print_domains

# Display the details of the first domain
p afraid.domains.first.host
p afraid.domains.first.address
p afraid.domains.first.url

# Update one specific domain from your list
afraid.update 'logankoester.com'

# Update every domain on my list
afraid.update_all

LICENSE:

(The MIT License)

Copyright © 2008 Logan Koester

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
‘Software’), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.