{ "info": { "author": "Abdallah Deeb", "author_email": "abdallah@deeb.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: System :: Distributed Computing", "Topic :: Utilities" ], "description": "RimuDNS\n=======\n\n[RimuHosting](http://rimuhosting.com) Python DNS tools\n\nDocumentation for the API can be found [here](https://rimuhosting.com/dns/dyndns.jsp) \nand [here](https://zonomi.com/app/dns/dyndns.jsp) for RimuHosting and Zonomi respectively.\n\nThe RimuDNS class is a wrapper around the REST API calls.\n\nInstallation\n------------\n easy_install rimudns\nor \n\n pip install rimudns\n\nUsage\n-----\n\nThe API key can be generated and replaced in the RimuHosting control panel \nfrom https://rimuhosting.com/cp/apikeys.jsp\n\nGet started:\n```python\n#!/usr/bin/env python\nfrom rimudns import RimuDNS\napi_key = 'GETYOURAPIKEYFROMTHECONTROLPANEL'\ndns = RimuDNS(api_key)\ndns.use_rimuhosting()\n```\n\nList all domains:\n```python\t\nfor domain in dns.list_zones():\n print domain['name']\n```\n\nCreate a new domain:\n```python\ndns.create_zone('example.com')\n```\n\nDelete a domain:\n```python\ndns.delete_zone('example.com')\n```\nImport a domain from a BIND zone file or string::\n* IMPORT_AXFR = 1\n* IMPORT_FILE = 2\n* IMPORT_TEXT = 3\n* IMPORT_DICT = 4\n* IMPORT_GUESS = 5\n\n_for more information about *IMPORT_GUESS* see [Guessing Feature] below._\n\n```python\nfrom rimudns import ZoneHandle\ndns.import_zone('example.com', ZoneHandle.IMPORT_FILE, '/tmp/example.com.zone')\n```\n\nExport a domain to file:\n```python\ndnsdns.to_file('/tmp/example.com.zone')\n```\nDelete a domain:\n```python\ndns.delete_zone('example.com')\n```\nList all records for a domain:\n```python\nrecords = dns.list_records('example.com')\nfor record_type in records:\n print 'Type: ', record_type\n for record in records[record_type]\n print 'name: %s -> %s' % (record['name'], record['content')\n```\nAdd/Update a record::\n```python\ndns.set_record('example.com', '127.0.0.1', record_type='A', ttl=600)\n```\nDelete a record::\n```python\ndns.delete_record('example.com', '127.0.0.1', 'A')\n```\nChange an IP across all zones::\n```python\nold_ip = '127.0.0.1'\nnew_ip = '127.0.0.2'\ndns.change_ip(old_ip, new_ip)\n```\nConvert a zone to slave/back to regular::\n```python\ndns.convert_to_regular('example.com')\ndns.convert_to_slave('example.com')\n```\n\nWeb Interface\n=============\n\nYou can always use the RimuHosting/Zonomi tools to edit your DNS zones\nTry: https://rimuhosting.com/dns/\n\nGuessing Feature\n================\nMost of the time you don't have access to AXFR or the Zone File to import the DNS zone directly. \nThe import_zone offers a _guessing_ feature that tries to build the zone information from DNS queries.\nYou can also provide extra guesses.\n```python\nextra_guesses = ['mail2', 'test', 'test1']\nrecords = dns.import_zone('funinc.org', ZoneHandle.IMPORT_GUESS, param=extra_guesses, dryrun=True)\nfor record_type in records:\n print 'Type: ', record_type\n for record in records[record_type]\n print 'name: %s -> %s' % (record['name'], record['content')\n```", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/abdallah/RimuDNS/zipball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/abdallah/RimuDNS", "keywords": null, "license": "GPLv3+", "maintainer": null, "maintainer_email": null, "name": "RimuDNS", "package_url": "https://pypi.org/project/RimuDNS/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/RimuDNS/", "project_urls": { "Download": "https://github.com/abdallah/RimuDNS/zipball/master", "Homepage": "https://github.com/abdallah/RimuDNS" }, "release_url": "https://pypi.org/project/RimuDNS/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Python interface to RimuHosting/Zonomi DNS", "version": "0.0.4" }, "last_serial": 785545, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "d82ba3892f3737cf67e5f5146c2888eb", "sha256": "9d028a0f35dacfd293f1c16998f6900941716bff470115eeddf423768472ae08" }, "downloads": -1, "filename": "RimuDNS-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d82ba3892f3737cf67e5f5146c2888eb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6961, "upload_time": "2012-09-23T18:01:49", "url": "https://files.pythonhosted.org/packages/9b/a7/da2756570cce2338dc5997ef4b8bc389c5e5f18e69ce5694d98487420bb0/RimuDNS-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "69e452a0183ca79a258208adccc84458", "sha256": "b13e29a3979ce9b488937e7d8362e7c8db74b95da07c828c40c2512c24899927" }, "downloads": -1, "filename": "RimuDNS-0.0.2.tar.gz", "has_sig": false, "md5_digest": "69e452a0183ca79a258208adccc84458", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8144, "upload_time": "2012-09-24T11:21:49", "url": "https://files.pythonhosted.org/packages/bc/4a/073619ab99cd20a1b7fbc1defe4b684318e3d7eea8ebb375fede8b3867da/RimuDNS-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d5db2ebd7f3c442801c7943744cd0384", "sha256": "31131ee83e09f7443242317e32bd03b76c8efa865db3a60e7dcf225bf4243c50" }, "downloads": -1, "filename": "RimuDNS-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d5db2ebd7f3c442801c7943744cd0384", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8254, "upload_time": "2012-12-18T12:29:41", "url": "https://files.pythonhosted.org/packages/b6/f0/75722077842c8c42b497efa89891301c26f9a4f685cc781df7eeb7159d50/RimuDNS-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "6a956f877fa709d5892ae9fc58c8fdd0", "sha256": "c25897c833d2d3a5bf3fd87d49571d0207e1e7ecfc75d5fa75ee21ec10b84d9d" }, "downloads": -1, "filename": "RimuDNS-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6a956f877fa709d5892ae9fc58c8fdd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8379, "upload_time": "2012-12-19T11:36:49", "url": "https://files.pythonhosted.org/packages/83/9f/6f4118567adee11b27a0438a832ecc6856a8ba05d4f8e6fedbba9ad0eecf/RimuDNS-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a956f877fa709d5892ae9fc58c8fdd0", "sha256": "c25897c833d2d3a5bf3fd87d49571d0207e1e7ecfc75d5fa75ee21ec10b84d9d" }, "downloads": -1, "filename": "RimuDNS-0.0.4.tar.gz", "has_sig": false, "md5_digest": "6a956f877fa709d5892ae9fc58c8fdd0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8379, "upload_time": "2012-12-19T11:36:49", "url": "https://files.pythonhosted.org/packages/83/9f/6f4118567adee11b27a0438a832ecc6856a8ba05d4f8e6fedbba9ad0eecf/RimuDNS-0.0.4.tar.gz" } ] }