to name is to own
Work in progress 🚧:
sig0namectl is a proof of concept set of tools that enable a secure, direct & scalable standard SIG(0) key based authentication to allow users to manage & further delegate update rights to DNS resource records within compatibly configured DNSSEC enabled zones.
🚩 Table of Contents (click to expand)
Install dependencies.
For Debian and derivatives:
apt install bind9-dnsutils python golang
For Fedora and related distributions and derivates
dnf install bind-utils python golang
To build the golang executable utility sig0namectl
,
cd golang
make sig0namectl
Each browser GUI application can be locally run by executing make start
in their respective directories under the repo directory demo/
Each browser GUI application can also be served by any web server simply by copying across the application directory files to the desired location served by the web server.
No system install yet. scripts use environment variables to define paths and essential defaults. Global defaults are set in file 'env' in current directory, tool specific defaults in env.
sequenceDiagram
autonumber
participant R as Requester<br><br>(DNSSEC client)
participant P as Provider<br><br>(DNSSEC server)
R->>R: Generate named keypair
R->>P: Request registration of named public key
P->>P: Apply registration policy
break when named public key fails policy
P->>R: Show unsuccessful registration
end
P->>+P: Publish & sign named public KEY record
P->>R: Show successful named key registration
By default, DNS key labels beneath a compatible domain can be claimed on a "First Come, First Served" (FCFS) basis.
To request a key registration within a compatible domain (zenr.io is an example domain for a public playground), use the request_key
tool, specifying the fully qualified domain name (FQDN) of the new domain you wish to control. For example, under the zenr.io domain, issuing:
request_key mysubdomain.zenr.io
will create a new ED25519 keypair in your local keystore (where 'my_subdomain' is unclaimed on a FCFS basis).
The successful registration can be verified by
dig mysubdomain.zenr.io KEY
returning the listed public key for the specific FQDN.
the keypair is enabled to add, modify or delete any DNS resource record at or under [*.]mysubdomain.zenr.io.
Note: It may take a minute or so for your local DNS resolver to update its cache with the new key.
sequenceDiagram
autonumber
participant R as Requester<br><br> (DNSSEC client)
participant P as Provider<br><br>(DNSSEC server)
R->>R: Create resource record updates & sign with named private key
R->>P: Request publication of updated records
P->>P: Verify update request signature against registered named key
break when update request signature does not match registered named public key
P-->>R: Show unsuccessful update
end
P->>P: Publish & sign updated resource records
P->>R: Show successful update
To manage a fully qualified domain name, you will need the keypair for that FQDN in your local keystore directory (./keystore). Advanced users can use -k and -s flags to specify other keys when needed.
Manages A & AAAA records for the specified fully qualified domain name, fqdn.
Updates LOC records for fqdn from GPS source (currently compatible with Android mobile devices using termux-location).
Manages DNS records necessary to activate wide area DNS Service Discovery browsing.
Gives an example of how to register browsable wide area DNS-SD services.
Successfully registered keypairs are stored in your local keystore and also can be used with the standard DNS tool, nsupdate
(using -k option to specify the keypair prefix filepath). See man nsupdate
for further details.
Copyleft (ɔ) 2022 Adam Burns, free2air limited & the Dyne.org foundation, Amsterdam
Designed, written and maintained by Adam Burns.
- 🔀 FORK IT
- Create your feature branch
git checkout -b feature/branch
- Commit your changes
git commit -am 'Add some fooBar'
- Push to the branch
git push origin feature/branch
- Create a new Pull Request
- 🙏 Thank you
sig0namectl -
Copyright (c) 2023 Adam Burns, free2air limited
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.