📄 | .gitignore |
📄 | LICENSE |
📄 | README.md |
📄 | config.js.dist |
📄 | index.js |
📄 | package.json |
📄 | publish.js |
README.md
ssb-dns
It's fairly easy to serve dns from a nodejs process.
scuttlebot makes it easy to work with a peer-to-peer log store.
So let's mash them together.
What could go wrong?
Installation
git clone https://github.com/ansuz/ssb-dns;
cd ssb-dns;
npm i;
Configuraiton
By default, the server will listen on 127.0.0.1:53053
.
If you'd prefer, you can cp config.js.dist config.js
and edit config.js
to suit your needs.
Publish a record
./publish.js {domain name} {record type} {value} [optionally add a dns class]
Fetch a record
dig @localhost -p 53053 {name} {type}
FAQ
Can I use this without running scuttlebot?
You could get a friend to host it if you really trust them.
Is it Enterprise-Ready?
Hell no. It barely works
Does it protect against name-squatting?
Not even a little bit.
Does it resolve conflicts if they occur?
Not yet.
What is it good for?
- If there is a DNS outage you can still resolve any you or your friends have published to ssb
- If you don't have access to the internet at all, this will continue to work (for some definition of work)
- You can use this as a kind of distributed hosts file
How optimized is this?
Not even a little bit, and it doesn't exactly fail gracefully either.
TODO
- merge server and publish into one script
ssb-dns server
ssb-dns publish
- support more cli options
--port=5353
--host=::
Built with git-ssb-web