git ssb

15+

ansuz / dnssb



Commit 9d7c9503d4789a0d9739342a23fbc219b0707ed7

add more example commands

ansuz committed on 11/6/2016, 7:36:14 PM
Parent: 20e767f6859bb22719c300c35c0132306b820a2b

Files changed

README.mdchanged
README.mdView
@@ -50,8 +50,18 @@
5050 ```
5151 dnssb publish [{prev record key}...] {domain name} [{ttl}] [{dns class}] {record type} {value}
5252 ```
5353
54 +For example:
55 +
56 +```Bash
57 +# publish an ipv4 record for localhost.ssb
58 +dnssb publish localhost.ssb 3600 IN A 127.0.0.1
59 +
60 +# publish an ipv6 record for localhost.ssb
61 +dnssb publish localhost.ssb 3600 IN AAAA ::1
62 +```
63 +
5464 To replace some existing dnssb records, pass their ssb message id(s) as
5565 the first arguments to the publish command. To append a record to the set of
5666 existing records, omit the message ids.
5767
@@ -86,8 +96,20 @@
8696 ```
8797 dig @localhost -p 53053 {name} {type}
8898 ```
8999
100 +The records which are available to you are determined by your peering, but
101 +assuming you have tried the `localhost.ssb` example commands listed above,
102 +you should be able to run the following:
103 +
104 +```Bash
105 +# query for ipv4 localhost.ssb
106 +dig @localhost -p 53053 localhost.ssb A
107 +
108 +# query for ipv6 localhost.ssb
109 +dig @localhost -p 53053 localhost.ssb AAAA
110 +```
111 +
90112 ## Questions
91113
92114 See [the FAQ](/docs/FAQ.md)
93115

Built with git-ssb-web