mirror of
https://github.com/lnbook/lnbook
synced 2024-11-15 00:15:05 +00:00
Edited 11_gossip_channel_graph.asciidoc with Atlas code editor
This commit is contained in:
parent
dbf0de8110
commit
705c19e6ad
@ -183,16 +183,16 @@ Decoding this bech32 string we obtain the following valid
|
||||
|
||||
Now that we have the raw public key, we'll ask the DNS server to _resolve_ the virtual host given so we can obtain the IP information (+A+ record) for the node, as shown in <<ex1102>>.
|
||||
|
||||
[[ex1102]]
|
||||
.Title here
|
||||
====
|
||||
----
|
||||
$ dig ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory A
|
||||
++++
|
||||
<div id="ex1102" data-type="example">
|
||||
<h5>Title here</h5>
|
||||
|
||||
; <<>> DiG 9.10.6 <<>> ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory A
|
||||
<pre data-type="programlisting">$ dig ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory A
|
||||
|
||||
; <<>> DiG 9.10.6 <<>> ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory A
|
||||
;; global options: +cmd
|
||||
;; Got answer:
|
||||
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41934
|
||||
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41934
|
||||
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
|
||||
|
||||
;; OPT PSEUDOSECTION:
|
||||
@ -201,15 +201,17 @@ $ dig ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.
|
||||
;ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory. IN A
|
||||
|
||||
;; ANSWER SECTION:
|
||||
ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory. 60 IN A X.X.X.X <1>
|
||||
ln1qfkxfad87fxx7lcwr4hvsalj8vhkwta539nuy4zlyf7hqcmrjh40xx5frs7.test.nodes.lightning.directory. 60 IN A <em>X.X.X.X</em> <a class="co" id="comarker1" href="#c01"><img src="callouts/1.png" alt="1"/></a>
|
||||
|
||||
;; Query time: 83 msec
|
||||
;; SERVER: 2600:1700:6971:6dd0::1#53(2600:1700:6971:6dd0::1)
|
||||
;; WHEN: Thu Dec 31 16:59:22 PST 2020
|
||||
;; MSG SIZE rcvd: 138
|
||||
----
|
||||
<1> The DNS server returns an IP Address _X.X.X.X_. We've replaced it with X's in the text here so as to avoid presenting a real IP address.
|
||||
====
|
||||
;; MSG SIZE rcvd: 138</pre>
|
||||
<dl class="calloutlist">
|
||||
<<dt><a class="co" id="c01" href="#comarker1"><img src="callouts/1.png" alt="1"/></a></dt>
|
||||
<dd><p>The DNS server returns an IP Address <em>X.X.X.X</em>. We’ve replaced it with X’s in the text here so as to avoid presenting a real IP address.</p></dd>
|
||||
</dl></div>
|
||||
++++
|
||||
|
||||
In the preceding command, we've queried the server so we can obtain an +IPv4+ (+A+ record) address for our target node (replaced by _X.X.X.X_ in the preceding example). Now that we have the raw public key, IP address, and TCP port, we can connect to the node transport protocol at:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user