Comments (2)
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:
- 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? - How to turn the DNS_SERVER_RECURSION flag to
deny
through the command line? - How to stop/restart the server? There is only
start.sh
in the/etc/dns
folder.
from ferret.
Nice project, @ShreyasZare.
Thanks for the response and compliments. Please find the response inline:
- 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.
- 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.
- 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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ferret.