Skip to content

Commit 044e2b3

Browse files
committed
adds CLI tutorial and minor corrections
1 parent c57d229 commit 044e2b3

3 files changed

Lines changed: 78 additions & 3 deletions

File tree

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
+++
2+
title = 'sig0namectl Command Line Usage'
3+
date = 2024-06-29T14:17:22+02:00
4+
draft = false
5+
summary = 'Usage examples of the sig0namectl tool to query and update DNS resource records.'
6+
+++
7+
8+
This section gives usage examples for the command line sig0namectl utility.
9+
10+
```
11+
NAME:
12+
sig0namectl - sig0 name control - direct, secure dynamic DNS
13+
14+
USAGE:
15+
sig0namectl [global options] command [command options]
16+
17+
COMMANDS:
18+
query, q query <name>
19+
print-key, pk add a task to the list
20+
update, u
21+
requestKey, rk requestKey <my.new.name>
22+
help, h Shows a list of commands or help for one command
23+
24+
GLOBAL OPTIONS:
25+
--host value [$SIG0_HOST]
26+
--zone value, -z value the zone you want to update [$SIG0_ZONE]
27+
--server value, --srv value [$SIG0_SERVER]
28+
--key-name value, --kn value Kso.me.na.me.+aaa+bbbbb [$SIG0_SIG0_KEYFILES]
29+
--help, -h show help
30+
```
31+
32+
# query command usage
33+
34+
```
35+
vortex@siluvian2:~$
36+
vortex@siluvian2:~$ sig0namectl --server doh.zenr.io --zone zenr.io query --type KEY zenr.io
37+
[Querying] 25:zenr.io
38+
(*dns.Msg)(0xc000024090)(;; opcode: QUERY, status: NOERROR, id: 6103
39+
;; flags: qr aa rd; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1
40+
41+
;; OPT PSEUDOSECTION:
42+
; EDNS: version 0; flags: do; udp: 1232
43+
44+
;; QUESTION SECTION:
45+
;zenr.io. IN KEY
46+
47+
;; ANSWER SECTION:
48+
zenr.io. 600 IN KEY 512 3 15 UqXF3jrAR0GugKoJbVUebRDss8XnSbE2nfv6jv0pZuA=
49+
zenr.io. 600 IN RRSIG KEY 8 2 600 20240821205305 20240807202747 29583 zenr.io. WF8H2U4qiyMCp86blpR409+IDxBr3xtkK6pKZKEQeT+7rXPcnaqagyAI0NMaoFsWdQ17dYdh7xPK8Wead2StmrtQJZ68GdzfhwyE/bfzm5j6EILBKTknwzgmvONUhwAh/rQ9Rx0qe9THlqnuU+0HdR5MvT3fpdu7WkjOYPu5Yj1yXYYAmVld16QSljsaGMttgQ9UInrsSek5oMMXxSZ0DOfOp3zDFlEWXEdxFO+Atk3YJk7YOx9ss4hVWOY5Dgns8VwqXg7QHs7klgdIyrm+tA2WtVukOE8eSzw9BkEs+TqaYdUQZDRy1EFJTW+yY9PbRxXZ+2M8C4+e6UWS9Ha8LQ==
50+
zenr.io. 600 IN RRSIG KEY 13 2 600 20240821205305 20240807202747 36504 zenr.io. /FBZfXGQ4cuV98pL+OWnzT+onCn+N0sWtkmblgwaw4OH4nC8Y7szWTS8mJd4J5yHu39vcrlz6iaBV00Ri3uQEA==
51+
)
52+
vortex@siluvian2:~$
53+
```
54+
55+
# update command usage
56+
57+
58+
```
59+
vortex@siluvian2:~$
60+
vortex@siluvian2:~$ sig0namectl --kn keystore/Kzembla.zenr.io.+015+23799 --server doh.zenr.io --zone zenr.io --host test.zembla update 1.2.3.4
61+
2024/06/24 16:00:12 -- Reading SIG(0) Keyfiles (dnssec-keygen format) --
62+
2024/06/24 16:00:12 keystore/Kzembla.zenr.io.+015+23799.key import: zembla.zenr.io. 3600 1 25 512 3 15 duQIg/NgFjwsE8ZKUuXJUG2/NNFs4o4byuwnekT062U=
63+
2024/06/24 16:00:12 -- Set dns.Msg Structure --
64+
2024/06/24 16:00:12 -- Create, fill & attach SIG RR to dns.Msg Structure --
65+
2024/06/24 16:00:12 -- Configure DoH client --
66+
2024/06/24 16:00:12 -- Response from DNS server --
67+
;; opcode: UPDATE, status: NOERROR, id: 3957
68+
;; flags: qr; ZONE: 1, PREREQ: 0, UPDATE: 0, ADDITIONAL: 0
69+
70+
;; ZONE SECTION:
71+
;zenr.io. IN SOA
72+
vortex@siluvian2:~$
73+
```
74+

hugo-gh/content/tutorials/Golang-WASM-SDK.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
+++
2-
title = 'sig0namectl API Javascript Examples'
3-
date = 2024-06-29T14:17:22+02:00
2+
title = 'sig0namectl API Javascript Usage'
3+
date = 2024-05-29T14:17:22+02:00
44
draft = false
5+
summary = 'For sig0namectl web browser application development. All sig0namectl API functions area listed with example Javascript usage.'
56
+++
67

78
This section documents usage of the sig0namectl API functions exposed to Javascript via WebAssembly (WASM). It is intended to assist further innovative development of browser-based sig0 dynamic update DNS applications.

hugo-gh/content/tutorials/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Tutorials"
3-
description: "sig0namectl is short for SIG(0) name control. The project allows secure and distributed delegation of DNS updates by directly communicating with the DNS infrastructure."
3+
description: "sig0namectl is short for SIG(0) name control. sig0namectl allows secure decentralised DNS updates by direct communication with the DNS infrastructure."
44
# featured_image: '/images/picture.jpg'
55
toc: true
66
menu:

0 commit comments

Comments
 (0)