A restful microservice that manage Bind9 zones, forked from https://github.com/dmyerscough/BIND-RESTful
Go to file
2013-10-09 21:39:49 -07:00
bind-api.py Make sure config lower case, allow DNS records to be deleted and perform actions based on request methods 2013-10-09 21:38:51 -07:00
config.ini Make sure config lower case, allow DNS records to be deleted and perform actions based on request methods 2013-10-09 21:38:51 -07:00
README.md Make sure config lower case, allow DNS records to be deleted and perform actions based on request methods 2013-10-09 21:39:49 -07:00
requirements.txt BIND DNS RESTful API 2013-10-05 18:10:21 -07:00

BIND-RESTful

BIND RESTful API to perform dyanmic DNS updates and display the entire zone file.

Show Entire Zone

The simple GET reuqest will cause a zone transfer to occur and will provide JSON output for an entire zone file

curl http://127.0.0.1:5000/dns/zone/internal.net

Create DNS Entry

The simple POST request will create a domain called 'mynewhost.internal.net' with the IP address of 192.168.0.15

curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/dns/record/mynewhost.internal.net/300/A/192.168.0.15

Update DNS Entry

The simple PUT request updates the 'mynewhost.internal.net' to 192.168.0.13

curl -i -H "Content-Type: application/json" -X PUT http://127.0.0.1:5000/dns/record/mynewhost.internal.net/300/A/192.168.0.13