From 1390f41094f7f075f33dc6e3d428cf0433c36bb5 Mon Sep 17 00:00:00 2001 From: Damian Myerscough Date: Tue, 8 Oct 2013 13:41:35 -0700 Subject: [PATCH] Update README.md --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fa039d1..b41f6aa 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,20 @@ BIND RESTful API to perform dyanmic DNS updates and display the entire zone file Show Entire Zone ================ -` curl http://127.0.0.1:5000/dns/zone/internal.net +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 ================ -` curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/dns/record/create/mynewhost.internal.net/300/A/192.168.0.15 +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/create/mynewhost.internal.net/300/A/192.168.0.15` Update DNS Entry ================ -` curl -i -H "Content-Type: application/json" -X POST http://127.0.0.1:5000/dns/record/update/mynewhost.internal.net/300/A/192.168.0.13 +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/update/mynewhost.internal.net/300/A/192.168.0.13`