Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pynsd-rpcd

A zerorpc based RPC Daemon to create, update and delete zones on NSD master.

See: pynsd

Licensed under the Apache License, Version 2.0 (the "License").

Basic Example of Usage

To use the rpc daemon you have to change the sample config /etc/pynsd-rpcd.cfg to your settings and start daemon.

pynsd-rpcd -c /etc/pynsd-rpcd.cfg

Send requests to rpc daemon:

zerorpc tcp://127.0.0.1:5912 zoneStatus testzone.example.

Or in python

with open ("demozone.txt", "r") as f:
    zonedata=f.read()

clt = zerorpc.Client()
clt.connect('tcp://127.0.0.1:5912')
print clt.updateZone('testzone.example.', zonedata)

Available Commands

  • addZone(name, zonedata, pattern = None)
  • updateZone(name, zonedata)
  • delZone(name)
  • zoneStatus(name)
  • reloadZone(name)
  • notifyZone(name)
  • transferZone(name)
  • reconfig
  • stats(noreset = True)

Installation

1. Download zip file
2. Extract it
3. Execute in the extracted directory: python setup.py install

Development version

pip install -e git+git@github.com:greensec/pynsd-rpcd.git

Requirements

About

zerorpc based RPC Daemon for NSD to create, update and delete zones on master and replicate to slaves

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages