Commit 9d7c9503d4789a0d9739342a23fbc219b0707ed7
add more example commands
ansuz committed on 11/6/2016, 7:36:14 PMParent: 20e767f6859bb22719c300c35c0132306b820a2b
Files changed
README.md | changed |
README.md | ||
---|---|---|
@@ -50,8 +50,18 @@ | ||
50 | 50 … | ``` |
51 | 51 … | dnssb publish [{prev record key}...] {domain name} [{ttl}] [{dns class}] {record type} {value} |
52 | 52 … | ``` |
53 | 53 … | |
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 … | + | |
54 | 64 … | To replace some existing dnssb records, pass their ssb message id(s) as |
55 | 65 … | the first arguments to the publish command. To append a record to the set of |
56 | 66 … | existing records, omit the message ids. |
57 | 67 … | |
@@ -86,8 +96,20 @@ | ||
86 | 96 … | ``` |
87 | 97 … | dig @localhost -p 53053 {name} {type} |
88 | 98 … | ``` |
89 | 99 … | |
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 … | + | |
90 | 112 … | ## Questions |
91 | 113 … | |
92 | 114 … | See [the FAQ](/docs/FAQ.md) |
93 | 115 … |
Built with git-ssb-web