Simple Gem that wraps around an active resource for the Zerigo DNS API
gem install zerigo_dns
require 'zerigo_dns'
Zerigo::DNS::Base.user = '[email protected]'
Zerigo::DNS::Base.api_key = 'yourtokengoeshere'
# Find or create domain
my_zone = Zerigo::DNS::Zone.find_or_create('happyplace.com')
# update or create host
my_host = Zerigo::DNS::Host.update_or_create(my_zone.id, 'www', 'A', 86400, '10.10.10.10')
Thats it, you should now have a host and url www.happyplace.com pointing to 10.10.10.10
spec spec
Thank you to John Axel Eriksson (github.com/johnae) for adding secure option and default, for the Zerigo DNS API.
Thank you to Anthony Scalisi (github.com/scalp42) for requesting api change: self.api_key instead self.password
[https://github.com/twilson63/zerigo_dns](https://github.com/twilson63/zerigo_dns)
create an issue
Copyright 2009 Zerigo, Inc. See MIT-LICENSE for license information.
Visit http://www.zerigo.com/docs/managed-dns for updates and documentation.
I just put there sample code into a gem library for deployment ease. And chef
integration.
If you have any questions contact [email protected]
Copyright 2009 Zerigo, Inc. See MIT-LICENSE for license information.