-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dumpzone RPC Call #152
Comments
@tynes Thoughts about making this a plugin vs an RPC call? Perhaps both will work well, but I was thinking a plugin might give us more flexibility with configuration e.g. file format, write to disk every x minutes. |
I think that the base functionality should be a RPC. Then everybody has the functionality built into the daemon without needing to install another package for the plugin. I think that a plugin could be useful for extending the base functionality, in particular the write to disk every so often job. You can also get this functionality with a cron job or an event that My usecase involves dumping the state of the Handshake zone in JSON with extra details so that it is possible to make visualizations of the tree. I'd personally like to listen to an event using Bitcoin has a similar RPC method called |
Ah yes good point, I think plugin to extend base functionality would be best as well. Happy to help work on this if it's needed! |
@tynes, we have a full implementation of the zone file format in bns:
As far as dumping to zone file goes, I have some code written for this currently (along with the new record types). Will push soon. |
@chjj Encoding a name's wire data to a Zone file would make public resolvers like |
@chjj was this merged? |
dumpzone RPC
A Node RPC
dumpzone
that dumps the state of the Handshake Zone into a file could be useful for building DNS infrastructure on top ofhsd
.By default, the file could be output in the zone file format.
The definition of a zone file is here, section 5 - https://tools.ietf.org/html/rfc1035
A more clear example - https://ns1.com/resources/dns-zones-explained
Arguments
Detailed mode should only be able to work with JSON output, since the point of outputting a zone file is to interoperate directly with DNS servers
The text was updated successfully, but these errors were encountered: