10.xhtml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. h t t :: / / t /
  4. h t t :: // // t //
  5. h ttttt ttttt ppppp sssss // // y y sssss ttttt //
  6. hhhh t t p p s // // y y s t //
  7. h hh t t ppppp sssss // // yyyyy sssss t //
  8. h h t t p s :: / / y .. s t .. /
  9. h h t t p sssss :: / / yyyyy .. sssss t .. /
  10. <https://y.st./>
  11. Copyright © 2015 Alex Yst <mailto:copyright@y.st>
  12. This program is free software: you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation, either version 3 of the License, or
  15. (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program. If not, see <https://www.gnu.org./licenses/>.
  22. -->
  23. <!DOCTYPE html>
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <base href="https://y.st./en/weblog/2015/12-December/10.xhtml" />
  27. <title>_services._dns-sd._udp.local. &lt;https://y.st./en/weblog/2015/12-December/10.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <link rel="stylesheet" type="text/css" href="/link/basic.css" />
  30. <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
  31. <script type="text/javascript" src="/script/javascript.js" />
  32. <meta name="viewport" content="width=device-width" />
  33. </head>
  34. <body>
  35. <nav>
  36. <p>
  37. <a href="/en/">Home</a> |
  38. <a href="/en/a/about.xhtml">About</a> |
  39. <a href="/en/a/contact.xhtml">Contact</a> |
  40. <a href="/a/canary.txt">Canary</a> |
  41. <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
  42. <a href="/en/opinion/">Opinions</a> |
  43. <a href="/en/coursework/">Coursework</a> |
  44. <a href="/en/law/">Law</a> |
  45. <a href="/en/a/links.xhtml">Links</a> |
  46. <a href="/en/weblog/2015/12-December/10.xhtml.asc">{this page}.asc</a>
  47. </p>
  48. <hr/>
  49. <p>
  50. Weblog index:
  51. <a href="/en/weblog/"><abbr title="American Standard Code for Information Interchange">ASCII</abbr> calendars</a> |
  52. <a href="/en/weblog/index_ol_ascending.xhtml">Ascending list</a> |
  53. <a href="/en/weblog/index_ol_descending.xhtml">Descending list</a>
  54. </p>
  55. <hr/>
  56. <p>
  57. Jump to entry:
  58. <a href="/en/weblog/2015/03-March/07.xhtml">&lt;&lt;First</a>
  59. <a rel="prev" href="/en/weblog/2015/12-December/09.xhtml">&lt;Previous</a>
  60. <a rel="next" href="/en/weblog/2015/12-December/11.xhtml">Next&gt;</a>
  61. <a href="/en/weblog/latest.xhtml">Latest&gt;&gt;</a>
  62. </p>
  63. <hr/>
  64. </nav>
  65. <header>
  66. <h1>_services._dns-sd._udp.local.</h1>
  67. <p>Day 00278: Thursday, 2015 December 10</p>
  68. </header>
  69. <p>
  70. I did some research today looking for a setting in Debian to make <a href="/en/domains/<code>cepo</code>.local.xhtml"><code>cepo</code></a> automatically boot back up after a power failure.
  71. I figured that it was a long shot to think that the operating system would have that level of control over the machine when powered off, but as the operating system can have the machine come back online after a reboot (instead of having the operating system shut the machine down, then needing the user to hit the power bullon to turn the machine back on), it might be possible.
  72. I never did find such a setting in the operating system, but I did find that <a href="https://technewsworld.com/story/78930.html">many <abbr title="Basic Input/Output System">BIOS</abbr>es have such an option</a>.
  73. It was a bit of a pain to pull <code>cepo</code> out of the place I stashed it so I could connect it to a monitor and keyboard and take a look, but it payed off.
  74. The article said that older <abbr title="Basic Input/Output System">BIOS</abbr>es do not have this option, so I was worried that <code>cepo</code> might not, but <code>cepo</code> was not as old as I had feared.
  75. </p>
  76. <p>
  77. I found a new tool today called mdns-scan.
  78. I do not yet fully understand the output, but it is successfully finding the powered-on machines that I know use <abbr title="multicast Domain Name System">mDNS</abbr>:
  79. </p>
  80. <pre>+ Zero [00:1f:3a:77:67:48]._workstation._tcp.local
  81. + Zero._udisks-ssh._tcp.local
  82. + newdawn [00:19:7e:92:0d:8d]._workstation._tcp.local
  83. + cepo [00:11:50:d3:e0:11]._workstation._tcp.local</pre>
  84. <p>
  85. Zero is Vanessa&apos;s laptop, which she left on when she left for school.
  86. I do not seem to be able to connect to any of those four apparent host names in the usual ways, so I am not sure if they are actually host names or just formatted somewhat like host names.
  87. The bracketed segment of these results seem to be the <abbr title="media access control">MAC</abbr> addresses of our machines.
  88. It seems that the <code>_udisks-ssh</code> segment of the apparent host name is associated with a remote disk management application that Vanessa must have installed and I do not.
  89. </p>
  90. <p>
  91. It seems that the method of retrieving the list of local network services is fairly simple.
  92. <abbr title="reverse Domain Name System">rDNS</abbr> is implemented by reformatting an <abbr title="Internet Protocol">IP</abbr> address into a host name and issuing a PTR <abbr title="Domain Name System">DNS</abbr> record request on the resulting host name.
  93. The returned record is supposed to be the host name associated with the <abbr title="Internet Protocol">IP</abbr> address.
  94. In <abbr title="multicast Domain Name System">mDNS</abbr> service discovery, a similar method is used.
  95. The querying machine issues a PTR record query to the broadcast <abbr title="Internet Protocol">IP</abbr> address requesting information about <a href="/en/domains/_services._dns-sd._udp.local.xhtml"><code>//_services._dns-sd._udp.local.</code></a> and any machine can answer with one or more host names.
  96. The returned host names seem to represent services that are available, though it seems that perhaps the returned host names are not the names that said machines will actually respond to, instead being more like descriptions of the services provided.
  97. This service-discovery method seems to be based on <a href="https://ietf.org/rfc/rfc6763.txt">a more general specification</a> not specific to <abbr title="multicast Domain Name System">mDNS</abbr>, though I do not seem to be able to get it to work with other domains.
  98. </p>
  99. <p>
  100. I initially had some problems passing <abbr title="Domain Name System">DNS</abbr> queries through <code>cepo</code> so that <code>cepo</code> could return responses for <code>//test.</code> and <code>//10.in-addr.arpa.</code> names.
  101. The issue was that either <code>cepo</code> would not pass queries that it did not have answers about onto the next <abbr title="Domain Name System">DNS</abbr> server or that such queries ended up creating a loop, as the router would ask the <code>cepo</code>, which would then ask the router, and so on.
  102. I am guessing that it was the former though, and queries just were not being forwarded at all.
  103. I found a <a href="https://www.digitalocean.com/community/tutorials/how-to-configure-bind-as-a-caching-or-forwarding-dns-server-on-ubuntu-14-04"><abbr title="Domain Name System">DNS</abbr> query forwarding tutorial</a> that helped me solve the problem.
  104. It was written for Ubuntu, but it works just as well on Debian.
  105. I used Google&apos;s <abbr title="Domain Name System">DNS</abbr> servers as the servers to query in case of zones that my server is not authoritative for, which is unfortunate, but it is better than using my <abbr title="Internet service provider">ISP</abbr>&apos;s <abbr title="Domain Name System">DNS</abbr> servers.
  106. My <abbr title="Internet service provider">ISP</abbr> captures invalid domains and redirects them to their partner&apos;s advertisement server.
  107. I have not yet made my server authoritative for any zones yet, but just having the network set up so that <abbr title="Domain Name System">DNS</abbr> queries pass through <code>cepo</code> without breaking anything is a good start.
  108. </p>
  109. <p>
  110. After changing the router settings a few times, I found that when the router goes down, <code>cepo</code> does not reconnect to it.
  111. This is a big problem, especially considering that <code>cepo</code> is now handling all <abbr title="Domain Name System">DNS</abbr> requests for all non-<abbr title="The Onion Router">Tor</abbr> users on the network.
  112. If <code>cepo</code> goes down, it is as if the network connection is down for my family.
  113. Somiaj from <a href="ircs://irc.oftc.net:6697/%23Tor">#Tor</a> suggested using wpasupplicant in roaming mode to make <code>cepo</code> reconnect automatically.
  114. I found a <a href="http://manual.aptosid.com/en/inet-setup-en.htm">guide for configuring roaming mode in wpasupplicant</a>, but it did not seem to offer working instructions.
  115. After finally getting everything working with help from a <a href="https://gist.github.com/ajfisher/a84889e64565d7a74888">second guide</a>, I noticed that I had missed something from the first.
  116. Following the first guide&apos;s instructions seems to give a better setup in my opinion, though somewhere along the way, I ended up using <code>auto wlan0</code instead of <code>allow-hotplug wlan0</code>.
  117. https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_basic_syntax_of_etc_network_interfacesIf I understand correctly, <a href="https://www.debian.org/doc/manuals/debian-reference/ch05.en.html#_the_basic_syntax_of_etc_network_interfaces"><code>allow-hotplug</code> is used when the Wi-Fi card will actually be added and removed from the machine while running, while <code>auto</code> is used to make the interface start up when the machine boots</a>.
  118. </p>
  119. <p>
  120. Cepo&apos;s Wi-Fi card does not seem physically sound.
  121. It was broken in the past, but I fixed it with pliers, thinking that that was the end of that.
  122. However, the antenna fell off again today and I had to once more squeeze the thing back together with pliers.
  123. Hopefully this will not be a frequent occurrence, especially with it currently residing on a high-up shelf that no one can reach without a stepping stool.
  124. It is out of the way and should not get bumped often.
  125. </p>
  126. <p>
  127. The person at the local community collage I wrote to got back to me today.
  128. As I expected, she was not the correct person to contact, but also as expected, she knew who I did need to contact.
  129. I have written to this second person now, so I hope to see what needs to be done soon.
  130. </p>
  131. <p>
  132. I believe that I have removed all hyperlinks from this website that use the <a href="/en/domains/quystystxtvdgyst.onion.xhtml">quystystxtvdgyst.onion.</a> domain.
  133. Hopefully, no other dead links exist on this website, at least not dead links involving my own domains.
  134. Maybe tomorrow, I will work on getting the new weblog index page set up.
  135. </p>
  136. <p>
  137. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  138. </p>
  139. <hr/>
  140. <p>
  141. Copyright © 2015 Alex Yst;
  142. You may modify and/or redistribute this document under the terms of the <a rel="license" href="/license/gpl-3.0-standalone.xhtml"><abbr title="GNU&apos;s Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
  143. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  144. My address is in the source comments near the top of this document.
  145. This license also applies to embedded content such as images.
  146. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  147. </p>
  148. <p>
  149. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  150. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2015%2F12-December%2F10.xhtml"><abbr title="Extensible Hypertext Markup Language">XHTML</abbr> 5.1</a> specification and uses style sheets that conform to the <a href="http://jigsaw.w3.org./css-validator/validator?uri=https%3A%2F%2Fy.st.%2Fen%2Fweblog%2F2015%2F12-December%2F10.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  151. </p>
  152. </body>
  153. </html>