11.xhtml 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * <https://y.st./>
  4. * Copyright © 2015 Alex Yst <mailto:copyright@y.st>
  5. *
  6. * This program is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <https://www.gnu.org./licenses/>.
  18. **/
  19. $xhtml = array(
  20. 'title' => '<code>//test.</code> and <code>//10.in-addr.arpa.</code>',
  21. 'body' => <<<END
  22. <p>
  23. I received a response about transferring credits, but I the person I wrote to misunderstood.
  24. She said that I needed to contact my old school and ask them which credits I can transfer.
  25. She had misunderstood which direction I was trying to transfer my credits.
  26. I wrote back to clarify, and she understood the second time.
  27. She said that all credits could be transferred in, but that was possible that only some would count toward a degree at the school that she represents.
  28. I asked how to tell how many credits were usable and how many courses I would need to complete my degree, so directed me to a third person.
  29. She only gave me a telephone number for third person, so I explained that I do not have a telephone and asked how to reach him by email.
  30. It seems that he is not reachable by email though, so she gave me the email address of yet a fourth person with which to make an appointment to come in in person.
  31. </p>
  32. <p>
  33. I updated the weblog index-building script.
  34. Not only does it now take care of the main, multi-year spanning index, it also includes the year on the $a[ASCII] calendars to make navigating the new main index easier.
  35. </p>
  36. <p>
  37. I think that I have come up with the format that I want to use for resolved $a[rDNS] host names on my local network.
  38. My main goal is to learn how to run a $a[DNS] server for both forward and backward name resolution, but as a secondary goal, I want to set up a clean structure that will make it easier to manage the Wi-Fi router&apos;s whitelist.
  39. By combining the whitelist feature and the router&apos;s static $a[DHCP] allocation option, I can assign permanent $a[IP] addresses to any host that I allow on the network.
  40. I can then use $a[rDNS] resolution to find out what device has a given $a[IP] address and who that device belongs to, making it easier to find out which devices are no longer around and should be removed from the whitelist.
  41. The format that I currently want to use for $a[rDNS] return values is &quot;{device name}.{owner name}.[no-mdns.]in-addr.test.&quot; If I know that, for example, Vanessa only has her laptop and there are three devices associated with her, I can remove the other two from the whitelist and $a[DNS] server.
  42. Likewise, if I see a device that I do not recognize on the whitelist, I can check to see who owns or owned it.
  43. The <code>no-mdns</code> segment is just a flag to myself.
  44. I doubt that it will come in handy, but any host that does not answer to a <code>//local.</code> domain will be given this designation.
  45. </p>
  46. <p>
  47. Quite a while ago, I set our Wi-Fi router to reserve the shortest nine available local $a[IP] addresses for my personal use.
  48. I wanted to be able to assign these $a[IP] addresses to my machines so that the router&apos;s $a[DHCP] server would always assign my machines the same addresses and I could find them accross the network when I needed them.
  49. This was before I learned that $a[mDNS] was being used by all of my machines and that I did not need static $a[IP] addresses for any machine that I was not port forwarding to.
  50. $a[rDNS] is pretty meaningless without static $a[IP] addresses though, so because all $a[IP] addresses will now be static, reserving the short addresses for static use is pointless.
  51. Instead, I am now reserving the larger address range from <code>10.0.0.1</code> to <code>10.0.0.99</code> for use by any machine that answers to an $a[mDNS] domain.
  52. Any that do not will instead be assigned an $a[IP] address with three digits in its least-significant segment.
  53. I have also reallocated <a href="/en/domains/chicken.local.xhtml"><code>chicken</code></a>&apos;s and <a href="/en/domains/thinkpad-x60s.local.xhtml"><code>thinkpad-x60s</code></a>&apos;s $a[IP] addresses (<code>10.0.0.1</code> and <code>10.0.0.2</code>, respectively) to Vanessa&apos;s and Cyrus&apos; machines.
  54. Cleaning out the old whitelist meant removing machines that were no longer in use on the network.
  55. </p>
  56. <p>
  57. I found a <a href="https://help.ubuntu.com/community/BIND9ServerHowto">guide to configuring Bind9</a> and used it to set up zones for both the <a href="/en/domains/test.xhtml"><code>//test.</code></a> and <a href="/en/domains/10.in-addr.arpa.xhtml"><code>//10.in-addr.arpa.</code></a> name spaces.
  58. At first, only the <code>//test.</code> zone functioned.
  59. I spent quite a bit of time trying to figure out what was wrong with the <code>//10.in-addr.arpa.</code> zone file, but it turned out that there was nothing wrong with that file itself.
  60. Instead, the problem was in the configuration file that told Bind9 where to even locate the file.
  61. </p>
  62. <p>
  63. I received a letter written in Arabic from a company today.
  64. It seems that someone once again used one of my email addresses to register an account.
  65. Luckily, the email contained instructions for having that account deleted, though on second thought, I should have just sent a password reset request and added the account to my collection of accounts that people gave me by using my email address to register instead of their own.
  66. </p>
  67. <p>
  68. My <a href="/a/canary.txt">canary</a> still sings the tune of freedom and transparency.
  69. </p>
  70. END
  71. );