Giter VIP home page Giter VIP logo

Comments (2)

SivaKesava1 avatar SivaKesava1 commented on August 23, 2024

Nice project, @ShreyasZare.

I pulled the Docker image and could start the DNS server quickly. I see a config folder in /etc/dns, which has a zones sub-folder, but the zone files are in binary format from what I have seen. If you can answer the following questions, it would be helpful and quick for me to run tests against your implementation:

  1. How to add a zone file through the command line? (I was able to do it through UI). More specifically, given a zone file in Bind format, how to convert it to the binary format used by your server through the command line to place it in the zones folder?
  2. How to turn the DNS_SERVER_RECURSION flag to deny through the command line?
  3. How to stop/restart the server? There is only start.sh in the /etc/dns folder.

from ferret.

ShreyasZare avatar ShreyasZare commented on August 23, 2024

Nice project, @ShreyasZare.

Thanks for the response and compliments. Please find the response inline:

  1. How to add a zone file through the command line? (I was able to do it through UI). More specifically, given a zone file in Bind format, how to convert it to the binary format used by your server through the command line to place it in the zones folder?

The zone files are in binary format where records are stored in their wire format with additional metadata. There is no option to import bind zone files yet, but the UI supports importing records or doing zone transfer via the DNS Client tab's Import feature if you have the zone running on any other DNS server.

But since you are looking at a command line option, the HTTP API that is available can be used over command like with curl to create zone and add records to it. You will need to parse the login API json response to get the token which needs to be used with other API calls. Let me know if you have any queries regarding it.

  1. How to turn the DNS_SERVER_RECURSION flag to deny through the command line?

For this too using the HTTP API with curl can be done. Check out the setDnsSettings API call. You can use the recursion=Deny query string parameter with the call. You wont need to pass any other optional query string parameters.

  1. How to stop/restart the server? There is only start.sh in the /etc/dns folder.

You can use the systemctl stop dns and systemctl restart dns commands.

from ferret.

Related Issues (4)

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.