Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    tonicdnscli 0.9

    Download button

    No screenshots available
    Downloads: 209  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kouhei Maeda | More programs
    GPL v3 / FREE
    September 13th, 2012, 08:22 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    tonicdnscli description

    TonicDNS CLI tool

    tonicdnscli is a command-line tool for TonicDNS API.TonicDNS is RESTful API for PowerDNS. Convert readble text record to JSON, and create or delete zone records with TonicDNS.

    Setup

     git clone https://github.com/mkouhei/tonicdnscli
     cd tonicdnscli
     sudo python setup.py install


    Usage

    Input file (example.org.txt)

       # name type content ttl priority
       test0.example.org A 10.10.10.10 86400
       test1.example.org A 10.10.10.11 86400
       test2.example.org A 10.10.10.12 86400
       example.org MX mx.example.org 86400 0
       example.org MX mx2.example.org 86400 10
       mx.example.org A 10.10.11.10 3600
       mx2.example.org A               10.10.11.10 3600

    Print converted JSON

       $ tonicdnscli show sample/example.org.txt
       {
         "records": [
           {
             "content": "10.10.10.10",
             "name": "test0.example.org",
             "ttl": "86400",
             "type": "A"
           },
           {
             "content": "10.10.10.11",
             "name": "test1.example.org",
             "ttl": "86400",
             "type": "A"
           },
           {
             "content": "10.10.10.12",
             "name": "test2.example.org",
             "ttl": "86400",
             "type": "A"
           },
       (snip)


    Retrieve records

       $ tonicdnscli get -s ns.example.org -d example.org -u tonicusername -P
       {
         "name": "example.org",
         "notified_serial": "2012021402",
         "records": [
           {
             "content": "ns.example.org hostmaster.example.org 2012021402",
             "name": "example.org",
             "priority": null,
             "ttl": "86400",
             "type": "SOA"
           },
           {
             "content": "ns.example.org",
             "name": "example.org",
             "priority": null,
             "ttl": "86400",
             "type": "NS"
           },
       (snip)


    Create records

     tonicdnscli create -s ns.example.org -u tonicusername -P sample/example.org.txt
       True


    Delete records

     tonicdnscli delete -s ns.example.org -u tonicusername -P sample/example.org.txt
       True



    Product's homepage

    Requirements:

    · Python

    What's New in This Release: [ read full changelog ]

    · Refine search
    · Update single record

      


    TAGS:

    TonicDNS API | Python library | Python | TonicDNS | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM