Metadata-Version: 1.1
Name: dnssync
Version: 0.2.1
Summary: Command line client to synchronize DNS hosted zones with local zone files
Home-page: http://github.com/metagriffin/dnssync
Author: metagriffin
Author-email: mg.pypi@metagriffin.net
License: GPLv3+
Description: ==========================
        Hosted DNS Synchronization
        ==========================
        
        The `dnssync` script allows DNS zones hosted at various DNS providers
        to be synchronized with local bind-style zone files. This allows the
        DNS zones to be easily version-controlled, if the service provider
        does not directly support that.
        
        Currently supported DNS service providers:
        
        * `PowerDNS <http://powerdns.net/>`_
        
        
        Project
        =======
        
        * Homepage: https://github.com/metagriffin/dnssync
        * Bugs: https://github.com/metagriffin/dnssync/issues
        
        
        Installation
        ============
        
        .. code-block:: bash
        
          $ pip install dnssync
        
        
        Usage
        =====
        
        To download a zone:
        
        .. code-block:: bash
        
          $ dnssync download --apikey {KEY} --domain {DOMAIN} {ZONEFILE}
        
        
        These command line options can also be stored in a configuration file,
        e.g. ``config.ini``:
        
        .. code-block:: ini
        
          apikey        = {KEY}
          domain        = {DOMAIN}
          zonefile      = {ZONEFILE}
        
        And then invoke dnssync as follows:
        
        .. code-block:: bash
        
          $ dnssync download --config config.ini
        
        
        To upload a zone:
        
        .. code-block:: bash
        
          $ dnssync upload --config config.ini
        
        
        And to show differences between the hosted zone and the local
        zonefile:
        
        .. code-block:: bash
        
          $ dnssync diff --config config.ini
        
        
        Configuration
        =============
        
        The dnssync configuration file can specify the following options:
        
        * ``apikey``: 
        
          The API access key provided by PowerDNS. Note that an account must
          first be enabled (via the PowerDNS website) before it can be used.
        
        * ``domain``: 
        
          The name of the zone to be operated on.
        
        * ``zonefile``: 
        
          The filename of the local zone file. If specified in the
          configuration, it is taken to be relative to the configuration
          file. If specified on the command line, it is taken to be relative
          to the current working directory.
        
        
        Several different profiles can be stored in the same configuration; each
        profile should have a section named after the domain. Global parameters can
        be stored in the "DEFAULT" section. For example:
        
        .. code-block:: ini
        
          [DEFAULT]
        
          # set some global parameters
          apikey        = 2f16eef6-5b1f-4d80-96f7-0237da03db48
        
          # set the default domain to manage
          domain        = example.com
        
          [example.com]
          zonefile      = example-com.zone
        
          [other-example.com]
          zonefile      = other-example-com.zone
        
        
        Then, to upload the zones:
        
        .. code-block:: bash
        
          # upload 'example.com'
          $ dnssync upload -c config.ini
        
          # upload 'other-example.com'
          $ dnssync upload -c config.ini -d other-example.com
        
Keywords: dns zone synchronize download upload diff client command line cli powerdns
Platform: any
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
