Giter VIP home page Giter VIP logo

clouddns's Introduction

Cloud DNS management tool

This package implements a console script that can be used to to perform some basic management tasks for the Rackspace Cloud DNS service.

To use the clouddns script you need to know your username and the API key. You can find the API key in the API Access section of the Rackspace Cloud Control Portal.

$ bin/clouddns --username=wichert --api=807ab61566324dc036493b306fe86eb1 list
wiggy.net id=3201843
$ bin/clouddns --username=wichert --api=807ab61566324dc036493b306fe86eb1 dump wiggy.net
wiggy.net   7200    A       82.94.255.193
wiggy.net   7200    AAAA    2001:888:2003:1011::10
wiggy.net   7200    MX      mx1.simplon.biz
wiggy.net   7200    NS      dns1.stabletransit.com
wiggy.net   7200    NS      dns2.stabletransit.com
www.wiggy.net       7200    A       82.94.255.193
www.wiggy.net       7200    AAAA    2001:888:2003:1011::10

If you are using a UK based account you must use the --region parameter:

$ bin/clouddns --username=wichert --api=807ab61566324dc036493b306fe86eb1 --region=uk list
wiggy.net id=3201843

You can easily migrate an existing domain by importing its bind zone file. When you are doing this make sure the record names are absolute so the cloud dns platform can figure out which domain you are importing. The above domain was imported from this file zone:

wiggy.net.      IN      SOA     levante.wiggy.net. hostmaster.wiggy.net.  2010110601 86400 7200 2419200 7200
                IN      MX      10 mx1.simplon.biz.
            IN      A       82.94.255.193
            IN      AAAA    2001:888:2003:1011::10

$ORIGIN wiggy.net.
www         IN      A       82.94.255.193
            IN      AAAA    2001:888:2003:1011::10

using this command:

$ bin/clouddns --username=wichert --api=807ab61566324dc036493b306fe86eb1 import-zone net.wiggy

clouddns's People

Contributors

wichert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

clouddns's Issues

cant install properly. get ImportError: No module named clouddns

Traceback (most recent call last):
File "/usr/local/bin/clouddns", line 9, in
load_entry_point('clouddns==1.0dev', 'console_scripts', 'clouddns')()
File "/usr/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg/pkg_resources.py", line 345, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg/pkg_resources.py", line 2381, in load_entry_point
return ep.load()
File "/usr/lib/python2.6/site-packages/distribute-0.6.49-py2.6.egg/pkg_resources.py", line 2087, in load
entry = import(self.module_name, globals(),globals(), ['name'])
ImportError: No module named clouddns

I'm a python rookie :)

Crash

When I try to run it this is what I get.

Traceback (most recent call last):
File "clouddns.py", line 371, in
main()
File "clouddns.py", line 364, in main
sys.exit(options.func(options, api) or 0)
File "clouddns.py", line 246, in list_domains
domains = api.domains.values()
File "clouddns.py", line 200, in domains
r = self._get('/domains')
File "clouddns.py", line 163, in _get
return self._send(requests.get, path, **kw)
File "clouddns.py", line 144, in _send
assert 'application/json' in r.headers['Content-Type']
AssertionError

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.