A zerorpc based RPC Daemon to create, update and delete zones on NSD master.
See: pynsd
- Copyright (c) 2007 - 2013 Novutec Inc. (http://www.novutec.com)
- Copyright (c) 2014 greenSec Solutions (http://www.greensec.de)
Licensed under the Apache License, Version 2.0 (the "License").
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.cfgSend 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)- addZone(name, zonedata, pattern = None)
- updateZone(name, zonedata)
- delZone(name)
- zoneStatus(name)
- reloadZone(name)
- notifyZone(name)
- transferZone(name)
- reconfig
- stats(noreset = True)
1. Download zip file
2. Extract it
3. Execute in the extracted directory: python setup.py install
pip install -e git+git@github.com:greensec/pynsd-rpcd.git