Giter Club home page Giter Club logo

bind-restful's Introduction

BIND-RESTful

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

Show Entire Zone

The simple GET request 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

bind-restful's People

Contributors

dependabot[bot] avatar dmyerscough avatar masipcat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bind-restful's Issues

Problem with PUT method

Hello,

I want to use your API mainly to update the IP-address of the records when an application is from one server to another, but everytime I try the UPDATE/PUT-function (via CLI or in a programm) I get : "error": "domain does not exist" as a response, eventhough the record should already exit.
Can you please help me with my problem? Do I have to change something in my DNS-server-configuration?

Thanks in advance.

Bug in line 99, using default resolver instead of custom one

There's a bug in your main script in line 99.
It reads answer = dns.resolver.query(domain, record_type), but should be answer = resolver.query(domain, record_type), because then it uses the resolver object defined above.
So trivial and yet so hard to see, took me hours of debugging. Please fix.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.