400.xhtml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631
  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 © 2016 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./ErrorDocument/400.xhtml" />
  27. <title>400 &lt;https://y.st./ErrorDocument/400.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <style type="text/css">
  30. /*
  31. &lt;https://y.st./&gt;
  32. Copyright © 2015-2016 //y.st. &lt;mailto:copyright@y.st&gt;
  33. This program is free software: you can redistribute it and/or modify
  34. it under the terms of the GNU General Public License as published by
  35. the Free Software Foundation, either version 3 of the License, or
  36. (at your option) any later version.
  37. This program is distributed in the hope that it will be useful,
  38. but WITHOUT ANY WARRANTY; without even the implied warranty of
  39. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  40. GNU General Public License for more details.
  41. You should have received a copy of the GNU General Public License
  42. along with this program. If not, see &lt;http://www.gnu.org./licenses/&gt;.
  43. */
  44. * {
  45. /* CSS 2.1 */
  46. margin: 0rem;
  47. padding: 0rem;
  48. border-width: 0rem;
  49. border-color: #fff;
  50. border-style: none;
  51. display: inline;
  52. position: static;
  53. top: auto;
  54. right: auto;
  55. bottom: auto;
  56. left: auto;
  57. float: none;
  58. clear: none;
  59. z-index: auto;
  60. direction: inherit;
  61. unicode-bidi: normal;
  62. /* width: auto; Setting this overrides the &quot;width&quot; property in the XHTML. */
  63. min-width: 0rem;
  64. max-width: none;
  65. /* height: auto; Setting this overrides the &quot;height&quot; property in the XHTML. */
  66. min-height: 0rem;
  67. max-height: none;
  68. line-height: inherit;
  69. vertical-align: baseline;
  70. overflow: visible;
  71. clip: auto;
  72. visibility: inherit;
  73. content: normal;
  74. quotes: inherit;
  75. counter-reset: none;
  76. counter-increment: none;
  77. list-style-type: inherit;
  78. list-style-image: inherit;
  79. list-style-position: inherit;
  80. page-break-before: auto;
  81. page-break-after: auto;
  82. page-break-inside: auto;
  83. orphans: inherit;
  84. widows: inherit;
  85. color: inherit;
  86. background-color: none;
  87. background-image: none;
  88. background-repeat: repeat;
  89. background-attachment: scroll;
  90. background-position: 0% 0%;
  91. font-family: inherit;
  92. font-style: inherit;
  93. font-variant: inherit;
  94. font-weight: inherit;
  95. font-size: inherit;
  96. text-indent: inherit;
  97. text-align: inherit;
  98. text-decoration: none;
  99. letter-spacing: inherit;
  100. word-spacing: inherit;
  101. text-transform: inherit;
  102. white-space: inherit;
  103. caption-side: inherit;
  104. table-layout: auto;
  105. border-collapse: inherit;
  106. border-spacing: inherit;
  107. empty-cells: inherit;
  108. cursor: inherit;
  109. outline-width: inherit;
  110. outline-style: inherit;
  111. outline-color: inherit;
  112. speak: inherit;
  113. pause-before: 0;
  114. pause-after: 0;
  115. cue-before: none;
  116. cue-after: none;
  117. voice-family: inherit;
  118. justify-content: center;
  119. text-decoration-style: solid;
  120. }
  121. body {
  122. /* CSS 2.1 */
  123. direction: ltr;
  124. line-height: normal;
  125. visibility: visible;
  126. quotes: &apos;&quot;&apos; &apos;&quot;&apos; &quot;&apos;&quot; &quot;&apos;&quot;;
  127. list-style-type: disc;
  128. list-style-image: none;
  129. list-style-position: outside;
  130. orphans: 2;
  131. widows: 2;
  132. color: white;
  133. background-color: black;
  134. font-family: monospace;
  135. font-style: normal;
  136. font-variant: normal;
  137. font-weight: normal;
  138. font-size: medium;
  139. text-indent: 0rem;
  140. text-align: left; /* This should be set to &quot;auto&quot;, but no such option exists. */
  141. letter-spacing: normal;
  142. word-spacing: normal;
  143. text-transform: none;
  144. white-space: normal;
  145. caption-side: top;
  146. border-collapse: separate;
  147. border-spacing: 0rem;
  148. empty-cells: show;
  149. cursor: auto;
  150. outline-width: medium;
  151. outline-style: none;
  152. outline-color: invert;
  153. speak: normal;
  154. voice-family: neutral;
  155. }
  156. head, script {
  157. display: none;
  158. }
  159. html, body, article, section, nav, aside, h1, h2, h3, h4, h5, h6, header, footer, address, p, hr, pre, blockquote, ol, ul, dl, dt, dd, figure, figcaption, div, main, form, noscript, marquee, meter, progress {
  160. display: block;
  161. }
  162. li {
  163. display: list-item;
  164. }
  165. a, em, strong, small, s, cite, q, dfn, abbr, data, time, code, var, samp, kbd, sub, sup, i, b, u, mark, ruby, rb, rt, rtc, rp, bdi, bdo, span, br, wbr, ins, del {
  166. display: inline;
  167. }
  168. img, iframe, embed, object, param, video, audio, source, track, map, area, label, input, button, select, datalist, optgroup, option, textarea, keygen, output, progress, meter, fieldset, legend, template, canvas, applet {
  169. display: inline-block;
  170. }
  171. table {
  172. display: table;
  173. margin: 1rem;
  174. }
  175. caption {
  176. display: table-caption;
  177. }
  178. colgroup {
  179. display: table-column-group;
  180. }
  181. col {
  182. display: table-column;
  183. }
  184. tbody {
  185. display: table-row-group;
  186. }
  187. thead {
  188. display: table-header-group
  189. }
  190. tfoot {
  191. display: table-footer-group
  192. }
  193. tr {
  194. display: table-row;
  195. }
  196. td, th {
  197. display: table-cell;
  198. border: 1px solid #fff;
  199. padding: 0.5rem;
  200. }
  201. q:before {
  202. content: open-quote;
  203. }
  204. q:after {
  205. content: close-quote;
  206. }
  207. a {
  208. text-decoration: underline;
  209. }
  210. a:link {
  211. text-decoration-color: #008;
  212. }
  213. a:visited {
  214. text-decoration-color: #800;
  215. }
  216. a:hover {
  217. text-decoration-color: #080;
  218. cursor: pointer;
  219. }
  220. a:active {
  221. text-decoration-color: #088;
  222. }
  223. hr {
  224. border-bottom: 1px solid;
  225. margin: 0.5rem;
  226. }
  227. p {
  228. margin: 1rem;
  229. line-height: 1.5;
  230. }
  231. pre {
  232. margin: 1rem;
  233. }
  234. ol, ul {
  235. padding: 1rem 3rem 1rem 3rem;
  236. margin: 1rem 3rem 1rem 3rem;
  237. }
  238. ol {
  239. list-style-type: decimal;
  240. }
  241. ul {
  242. list-style-type: disc;
  243. }
  244. ul ul {
  245. list-style-type: circle;
  246. }
  247. ul ul ul {
  248. list-style-type: square;
  249. }
  250. li ol, li ul {
  251. padding: 0rem 1rem 0rem 1rem;
  252. margin: 0rem 1rem 0rem 1rem;
  253. }
  254. em, i {
  255. font-style: italic;
  256. }
  257. del {
  258. text-decoration: line-through;
  259. }
  260. ins {
  261. text-decoration: underline;
  262. }
  263. h1, h2, h3, h4, h5, h6, strong, b {
  264. font-weight: bold;
  265. }
  266. h1 {
  267. font-size: 2rem;
  268. margin: 1em 1rem;
  269. }
  270. h2 {
  271. font-size: 1.5rem;
  272. margin: 1em 1rem;
  273. }
  274. h3 {
  275. font-size: 1.25rem;
  276. margin: 1em 1rem;
  277. }
  278. h4 {
  279. font-size: 1.125rem;
  280. margin: 1em 1rem;
  281. }
  282. h5 {
  283. font-size: 1.0625rem;
  284. margin: 1em 1rem;
  285. }
  286. h6 {
  287. font-size: 1.03125rem;
  288. margin: 1em 1rem;
  289. }
  290. [title] {
  291. text-decoration: underline;
  292. text-decoration-style: dotted;
  293. cursor: help;
  294. }
  295. blockquote {
  296. margin: 2rem;
  297. padding: 1rem;
  298. border: 1px dashed;
  299. }
  300. pre {
  301. white-space: pre;
  302. }
  303. code {
  304. background-color: #111;
  305. border: 1px #333;
  306. white-space: pre-wrap;
  307. }
  308. header {
  309. margin: 1rem;
  310. }
  311. /* This *MUST* be one of the last styles listed in this style sheet. */
  312. header * {
  313. margin: 0rem;
  314. }
  315. /*
  316. &lt;https://y.st./&gt;
  317. Copyright © 2015-2017 //y.st. &lt;mailto:copyright@y.st&gt;
  318. This program is free software: you can redistribute it and/or modify
  319. it under the terms of the GNU General Public License as published by
  320. the Free Software Foundation, either version 3 of the License, or
  321. (at your option) any later version.
  322. This program is distributed in the hope that it will be useful,
  323. but WITHOUT ANY WARRANTY; without even the implied warranty of
  324. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  325. GNU General Public License for more details.
  326. You should have received a copy of the GNU General Public License
  327. along with this program. If not, see &lt;http://www.gnu.org./licenses/&gt;.
  328. */
  329. body {
  330. background-image: url(&quot;/link/CC_BY-SA_4.0/y.st./background.png&quot;);
  331. background-color: #000;
  332. background-attachment: fixed;
  333. }
  334. blockquote {
  335. background-image: url(&quot;/link/CC_BY-SA_4.0/y.st./background_-_inverted.png&quot;);
  336. background-color: #222;
  337. background-attachment: fixed;
  338. }
  339. blockquote blockquote {
  340. background-image: url(&quot;/link/CC_BY-SA_4.0/y.st./background.png&quot;);
  341. background-color: #000;
  342. background-attachment: fixed;
  343. }
  344. blockquote blockquote blockquote {
  345. background-image: url(&quot;/link/CC_BY-SA_4.0/y.st./background_-_inverted.png&quot;);
  346. background-color: #222;
  347. background-attachment: fixed;
  348. }
  349. blockquote blockquote blockquote blockquote {
  350. background-image: url(&quot;/link/CC_BY-SA_4.0/y.st./background.png&quot;);
  351. background-color: #000;
  352. background-attachment: fixed;
  353. }
  354. ul.langselect {
  355. font-size: 3rem;
  356. text-align: center;
  357. font-weight: bold;
  358. }
  359. ul.langselect span {
  360. color: #888;
  361. }
  362. div.weblogindex {
  363. display: flex;
  364. justify-content: center;
  365. flex-wrap: wrap;
  366. /* This centers the text for any browser that does not support flex boxes: */
  367. text-align: center;
  368. }
  369. div.weblogindex pre {
  370. margin: 0rem;
  371. }
  372. h2.tld-great, h3.tld-available, span.needed-for-bachelor {
  373. color: #000;
  374. background-color: #088;
  375. }
  376. h2.tld-decent, h3.tld-unknownavailability {
  377. color: #000;
  378. background-color: #880;
  379. }
  380. h2.tld-usable, h3.tld-unavailable, span.needed-for-associate {
  381. color: #000;
  382. background-color: #808;
  383. }
  384. a[href=&quot;https://y.st./a/canary.txt&quot;], a[href=&quot;/a/canary.txt&quot;] {
  385. color: #ff0;
  386. }
  387. /* Text decorations used when no semantic value is available */
  388. span.underline {
  389. text-decoration: underline;
  390. }
  391. span.redacted {
  392. color: #fff;
  393. background-color: #fff;
  394. }
  395. img.weblog-header-image {
  396. max-width: calc(100% - 2rem - 2px);
  397. display: block;
  398. margin: auto;
  399. padding: 1rem;
  400. border: 1px dashed;
  401. background-color: #000;
  402. }
  403. div.APA_references p {
  404. margin-left: 5rem;
  405. text-indent: -4rem;
  406. }
  407. span.hyperlink_unavailable {
  408. color: #444;
  409. }
  410. a.hyperlink_unavailable {
  411. color: #888;
  412. }
  413. </style>
  414. <meta name="viewport" content="width=device-width" />
  415. </head>
  416. <body>
  417. <header>
  418. <h1>400</h1>
  419. <p>Bad Request</p>
  420. </header>
  421. <p>Your Web browser sent a request that this Web server didn&apos;t understand. Most likely, this is because of a bug in the way in which your Web browser sends <abbr title="Server Name Indication">SNI</abbr> host names. This bug is known to affect, at a minimum, the following Web browsers:</p>
  422. <ul>
  423. <li><a href="https://bugreports.qt.io/browse/QTBUG-51821">Arora</a></li>
  424. <li><a href="https://bugs.chromium.org./p/chromium/issues/detail?id=496472">Chromium (Chrome, et cetera)</a></li>
  425. <li><a href="https://bugzilla.gnome.org/show_bug.cgi?id=763510">Epiphany</a></li>
  426. <li><a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1008120">Firefox (Iceweasel, Tor Browser Bundle, Pale Moon, et cetera)</a></li>
  427. <li>Internet Explorer</li>
  428. <li><a href="https://bugs.launchpad.net./midori/+bug/1555823">Midori</a></li>
  429. <li><a href="https://bugs.kde.org./show_bug.cgi?id=360423">Konqueror</a></li>
  430. <li><a href="https://bugs.webkit.org./show_bug.cgi?id=155378">Surf</a></li>
  431. <li><a href="https://savannah.gnu.org/bugs/index.php?47408">Wget</a></li>
  432. <li><a href="https://sourceforge.net/p/w3m/feature-requests/27/">w3m</a></li>
  433. </ul>
  434. <p>If you want more information on the issue, which we cannot fix on our end because the problem is in the Web browser, please read the following article:</p>
  435. <blockquote><article>
  436. <header>
  437. <h1>The <abbr title="Server Name Indication">SNI</abbr> bug</h1>
  438. <p>Most Web browsers are broken.</p>
  439. </header>
  440. <p>Before we get started, I have a small disclaimer. The <abbr title="Request for Comments">RFC</abbr> documents are copyrighted. However, I feel that my quoting passages from there here should be considered fair use under United States copyright law because I am both including these passages for the purpose of making comments on them and I am linking directly to the documents that the passages came from on the <abbr title="Internet Engineering Task Force">IETF</abbr>&apos;s website.</p>
  441. <h2>Malformed <abbr title="Server Name Indication">SNI</abbr> host names</h2>
  442. <p>Many Web browsers exhibit a bug of one form or another when dealing with <abbr title="Uniform Resource Identifier">URI</abbr>s that have a trailing dot in their host component. First, some background. To quote a couple specifications:</p>
  443. <p><a href="https://tools.ietf.org./html/rfc6066#section-3"><abbr title="Request for Comments">RFC</abbr> 6066 (<abbr title="Server Name Indication">SNI</abbr>)</a> says:</p>
  444. <blockquote><pre>&quot;HostName&quot; contains the fully qualified DNS hostname of the server,
  445. as understood by the client. The hostname is represented as a byte
  446. string using ASCII encoding without a trailing dot.</pre></blockquote>
  447. <p>While <a href="https://tools.ietf.org./html/rfc7230#section-5.4"><abbr title="Request for Comments">RFC</abbr> 7230 (<abbr title="Hypertext Transfer Protocol">HTTP</abbr>)</a> has this to say:</p>
  448. <blockquote><pre>A client MUST send a Host header field in all HTTP/1.1 request
  449. messages. If the target URI includes an authority component, then a
  450. client MUST send a field-value for Host that is identical to that
  451. authority component, excluding any userinfo subcomponent and its &quot;@&quot;
  452. delimiter (Section 2.7.1).</pre></blockquote>
  453. <p>On that second one, the emphasis is in the original document. I didn&apos;t add it.</p>
  454. <p>If you pay attention to what these documents are saying, the <abbr title="Server Name Indication">SNI</abbr> host name and <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host header do not always match. The <abbr title="Server Name Indication">SNI</abbr> host name must never have a trailing dot, but the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host header must reflect a host name that is identical to the host name of the <abbr title="Uniform Resource Identifier">URI</abbr>, so if the <abbr title="Uniform Resource Identifier">URI</abbr>&apos;s host has a trailing dot, the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host header must include that trailing dot. For example, if the <abbr title="Uniform Resource Identifier">URI</abbr> of a page is <a href="https://alice.sni.velox.ch./"><code>https://alice.sni.velox.ch./</code></a>, the following values should be sent by the Web browser:</p>
  455. <p><abbr title="Server Name Indication">SNI</abbr> host: alice.sni.velox.ch</p>
  456. <p><abbr title="Hypertext Transfer Protocol">HTTP</abbr> host: alice.sni.velox.ch.</p>
  457. <p>While I agree that requiring that the <abbr title="Server Name Indication">SNI</abbr> host name have its trailing dot stripped is kind of dumb, the fact is, some servers conform to this. If you send an <a href="apt:apache2">Apache Web server</a> a request with an invalid <abbr title="Server Name Indication">SNI</abbr> host name that is invalid only because it contains a trailing dot, Apache will throw a 400 error at you. You can&apos;t really argue with the Apache developers for setting this up, either. After all, they followed the standard to the letter. However, most Web clients seem to have a bug that causes them to fail to trim off this trailing dot from the <abbr title="Server Name Indication">SNI</abbr> host name. This limits the practicality of using &quot;https&quot;-scheme <abbr title="Uniform Resource Identifier">URI</abbr>s. These <abbr title="Uniform Resource Identifier">URI</abbr>s are perfectly valid, but Web clients don&apos;t handle them correctly. In fact, you could even say that these dotted domain <abbr title="Uniform Resource Identifier">URI</abbr>s are <strong>*more*</strong> valid than their non-dotted counterparts. <a href="https://tools.ietf.org./html/rfc7230#section-2.7.1"><abbr title="Request for Comments">RFC</abbr> 7230</a> (<abbr title="Hypertext Transfer Protocol">HTTP</abbr>) makes no comments on trailing dots, and in fact, doesn&apos;t even require that the host component of the <abbr title="Uniform Resource Identifier">URI</abbr> be a <abbr title="Domain Name System">DNS</abbr> name:</p>
  458. <blockquote><pre>If host is a registered name, the registered name is an
  459. indirect identifier for use with a name resolution service, such as
  460. DNS, to find an address for that origin server.</pre></blockquote>
  461. <p><q>Such as <abbr title="Domain Name System">DNS</abbr></q>. <abbr title="Domain Name System">DNS</abbr> isn&apos;t a requirement. Most of us do use <abbr title="Domain Name System">DNS</abbr> to make sense of &quot;https&quot;-scheme <abbr title="Uniform Resource Identifier">URI</abbr>s though. <a href="https://tools.ietf.org./html/rfc3986#section-3.2.2"><abbr title="Request for Comments">RFC</abbr> 3986 (<abbr title="Uniform Resource Identifier">URI</abbr>s)</a> has this to say about using a <abbr title="Domain Name System">DNS</abbr> domain name in a <abbr title="Uniform Resource Identifier">URI</abbr>:</p>
  462. <blockquote><pre>A host identified by a registered name is a sequence of characters
  463. usually intended for lookup within a locally defined host or service
  464. name registry, though the URI&apos;s scheme-specific semantics may require
  465. that a specific registry (or fixed name table) be used instead. The
  466. most common name registry mechanism is the Domain Name System (DNS).
  467. A registered name intended for lookup in the DNS uses the syntax
  468. defined in Section 3.5 of [RFC1034] and Section 2.1 of [RFC1123].
  469. Such a name consists of a sequence of domain labels separated by &quot;.&quot;,
  470. each domain label starting and ending with an alphanumeric character
  471. and possibly also containing &quot;-&quot; characters. The rightmost domain
  472. label of a fully qualified domain name in DNS may be followed by a
  473. single &quot;.&quot; and should be if it is necessary to distinguish between
  474. the complete domain name and some local domain.</pre></blockquote>
  475. <p>The dot should be included when there is a chance that not including the dot results in ambiguity with some local domain. You don&apos;t know the setup of your users. You don&apos;t know if they have local domains defined. There is <strong>*always*</strong> a chance of this ambiguity. Furthermore, <a href="https://tools.ietf.org./html/rfc7230#section-9.1"><abbr title="Request for Comments">RFC</abbr> 7230</a> (<abbr title="Hypertext Transfer Protocol">HTTP</abbr>) makes a comment about <abbr title="Domain Name System">DNS</abbr> returning different results to different users:</p>
  476. <blockquote><pre>When a registered name is used in the authority component, the &quot;http&quot;
  477. URI scheme (Section 2.7.1) relies on the user&apos;s local name resolution
  478. service to determine where it can find authoritative responses. This
  479. means that any attack on a user&apos;s network host table, cached names,
  480. or name resolution libraries becomes an avenue for attack on
  481. establishing authority. Likewise, the user&apos;s choice of server for
  482. Domain Name Service (DNS), and the hierarchy of servers from which it
  483. obtains resolution results, could impact the authenticity of address
  484. mappings; DNS Security Extensions (DNSSEC, [RFC4033]) are one way to
  485. improve authenticity.</pre></blockquote>
  486. <p>The user&apos;s choice of server and the hierarchy of servers can impact the result. Admittedly, upon first glance, I thought that it was talking about the <abbr title="Domain Name System">DNS</abbr> name hierarchy, which would have directly validated my point. However, while that&apos;s not exactly what is said, it has a similar impact. Depending on which server you use, <abbr title="Domain Name System">DNS</abbr> results can come out differently. One of the main and completely standard reasons that a <abbr title="Domain Name System">DNS</abbr> server (or for that matter, any <abbr title="Domain Name System">DNS</abbr> server in a chain of <abbr title="Domain Name System">DNS</abbr> servers) might return different results than another, is that one or both <abbr title="Domain Name System">DNS</abbr> servers is resolving the name within a local domain name space. The obvious way to insure that the domain is resolved in a global context is to include the trailing dot, and as a result, it is helpful for clients to be able to correctly handle <abbr title="Uniform Resource Identifier">URI</abbr>s that include the trailing dot.</p>
  487. <h2>Web clients that exhibit this bug:</h2>
  488. <h3><a href="apt:arora">Arora</a></h3>
  489. <p>The Arora developer believes that the bug is in the underlying QT networking library, not in Arora itself. A <a href="https://bugreports.qt.io/browse/QTBUG-51821">bug report</a> has been filed with the Qt developers, and a <a href="https://codereview.qt-project.org/#/c/152150/">bug fix</a> has been written and accepted into the version 5.6 code. It seems that version 5.6 has already been released though, so it&apos;s possible that the Gerrit branch won&apos;t be renamed until version 5.7 is ready to be released. At this point, all we need to do is wait for the next Qt release, then wait for the new release to propagate to the software distributions that include Qt.</p>
  490. <h3><a href="apt:chromium">Chromium</a> (Chrome, et cetera)</h3>
  491. <p>Reporting bugs to the Chromium developers requires a Google account, and getting a Google account requires a telephone number. This is moronic. While I wasn&apos;t able to report the bug myself, I did find someone that was willing to file a <a href="https://bugs.chromium.org./p/chromium/issues/detail?id=593952">bug report</a> on my behalf. It turns out though that is was already a <a href="https://bugs.chromium.org./p/chromium/issues/detail?id=496472">known bug</a>. The bug has been known about for almost a year, but has not yet been fixed.</p>
  492. <h3><a href="apt:epiphany-browser">Epiphany</a></h3>
  493. <p>I filed a <a href="https://bugzilla.gnome.org/show_bug.cgi?id=763510">bug report</a> with the <abbr title="GNU Network Object Model Environment">GNOME</abbr> developers and it has been acknowledged. It appears that the bug is believed to be specifically in the glib code.</p>
  494. <h3>Firefox (<a href="apt:iceweasel">Iceweasel</a>, Tor Browser Bundle, Pale Moon, et cetera)</h3>
  495. <p>I filed a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1255854">bug report</a> with Mozilla, but it turns out that this was a <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1008120">known bug</a>. However, the patch included was from <abbr title="Client for URLs/Client URL Request Library/Curl URL Request Library">cURL</abbr>, which as you can read below, introduces a different bug.</p>
  496. <h3><a href="apt:midori">Midori</a></h3>
  497. <p>I filed a <a href="https://bugs.launchpad.net./midori/+bug/1555823">bug report</a> with the Midori developers, but they have not yet responded.</p>
  498. <h3><a href="apt:konqueror">Konqueror</a></h3>
  499. <p>I filed a <a href="https://bugs.kde.org./show_bug.cgi?id=360423">bug report</a> with the KDE developers. It has not yet been acknowledged, but if it turns out that the issue relates to the underlying Qt networking library like it likely does in Arora, the may resolve itself once the Qt networking library is rereleased and updated in projects that depend on it.</p>
  500. <h3><a href="apt:surf">Surf</a></h3>
  501. <p>Suckless, the developers of Surf, believe that the error isn&apos;t in their own code, but in Webkit, so I filed a <a href="https://bugs.webkit.org./show_bug.cgi?id=155378">bug report</a> with the Webkit developers. However, it turns out that Webkit doesn&apos;t even handle <abbr title="Server Name Indication">SNI</abbr> implementation. I now believe that the bug in Surf is caused by the bug in glib, so hopefully when that is fixed, the fix will trickle into Surf.</p>
  502. <h3>w3m</h3>
  503. <p>Getting an account on SourceForge is a bit of a pain, due to <abbr title="Internet Protocol">IP</abbr> address sniffing on the registration page. If you&apos;re a <a href="apt:tor">Tor</a>-user, you need to write to the SourceForge staff via email and hope you run into a staff member that is nice enough to open an account on your behalf. I&apos;ve filed a <a href="https://sourceforge.net/p/w3m/feature-requests/27/">bug report</a>, but I somehow get the feeling that this project is unmaintained. The last update seems to have been on <a href="https://sourceforge.net/projects/w3m/files/">2011-01-15</a>. If I&apos;m right, a bug fix may not come any time soon. If you use w3m, it might be time to switch to a Web browser that still has support.</p>
  504. <h3><a href="apt:wget">Wget</a></h3>
  505. <p>I filed a <a href="https://savannah.gnu.org/bugs/index.php?47408">bug report</a> with the <abbr title="Free Software Foundation">FSF</abbr>. Most of the conversation occurred via email though, and I don&apos;t know how to find the relevant bits in the online archive. Long story short, is sounds like if they decide to fix this bug, they will add a new bug, the one from <abbr title="Client for URLs/Client URL Request Library/Curl URL Request Library">cURL</abbr>.</p>
  506. <h2>Incorrect <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host names</h2>
  507. <p>Sending malformed <abbr title="Server Name Indication">SNI</abbr> host names isn&apos;t the only mis-processing of <abbr title="Uniform Resource Identifier">URI</abbr>s by Web browsers that seems to be triggered by fully-qualified domain names. Some Web browsers send the correct <abbr title="Server Name Indication">SNI</abbr> Host names, but they strip the trailing dot off of not only the <abbr title="Server Name Indication">SNI</abbr> host name, but also the <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host header. The <abbr title="Hypertext Transfer Protocol">HTTP</abbr> Host header is used by the Web server to know what site is being requested, and as mentioned above, this header is <strong>*required*</strong> to contain the host name as it appears in the <abbr title="Uniform Resource Identifier">URI</abbr>. The site that uses the trailing dot host name is not necessarily the same site that uses the host name without the trailing dot. The server administrator can choose to host two different sites using these host names, similar to how a server administrator could host another site using a subdomain. Furthermore, a server administrator may host a single website, but have a preferred host name. This is like when a &quot;www.*&quot; website redirects to a non-&quot;www.*&quot; website or vice versa.</p>
  508. <p>I&apos;ve seen some websites that redirect from a trailing-dot domain to a domain without the trailing dot. These websites have every right to choose the version of the domain without the trailing dot as their canonical version. However, going back to the possibility of domains being resolved in a local name space, redirecting from the domain <code>//example.net.</code> (with a trailing dot) to <code>//example.net</code> (without a trailing dot) could result in the latter being resolved to <code>//example.net.example.org.</code>, causing the user to be unable to reach <code>//example.net.</code>. This is a very unlikely case, but it still means that some server administrators would choose the trailing-dot version of their domain as the canonical host. When Web clients fail to transmit the correct Host header, this will cause an endless redirect loop. The client obviously stops attempting to retrieve the page after a while, but the user is left unable to reach the content that they were after. Again, if you read the standards-setting <abbr title="Request for Comments">RFC</abbr>s, this is the fault of the client software, not the server and not the server&apos;s administrator.</p>
  509. <h2>Web clients that exhibit this bug:</h2>
  510. <h3><a href="apt:curl">cURL</a></h3>
  511. <p>I have filed a <a href="https://github.com/curl/curl/issues/716">bug report</a> with <abbr title="Client for URLs/Client URL Request Library/Curl URL Request Library">cURL</abbr>&apos;s developers, but they seem convinced that this is a feature, not a bug.</p>
  512. <h3><a href="apt:elinks">Elinks</a></h3>
  513. <p>I have not yet filed a bug report with the Elinks developers.</p>
  514. <h3><a href="apt:lynx">Lynx</a></h3>
  515. <p>I have not yet filed a bug report with the Lynx developers.</p>
  516. <h2>Other strange behavior</h2>
  517. <p>I found a singular strange case when trying to find which Web clients have the <abbr title="Server Name Indication">SNI</abbr> bug and which don&apos;t. Namely, the <a href="apt:netsurf">Netsurf</a> Web browser normalizes <abbr title="Uniform Resource Identifier">URI</abbr>s that have a trailing dot to their form without the trailing dot. Nowhere in any standards-setting documentation can I find any support for this behavior. However, as stated above, &quot;https&quot;- and &quot;http&quot;-scheme <abbr title="Uniform Resource Identifier">URI</abbr>s are not required to be resolved using <abbr title="Domain Name System">DNS</abbr>. Effectively, Netsurf is resolving <abbr title="Uniform Resource Identifier">URI</abbr>s using an internal non-<abbr title="Domain Name System">DNS</abbr> mechanism. Names with a trailing dot are then redirected to their version without the trailing dot, while names without the trailing dot are sent to the <abbr title="Domain Name System">DNS</abbr> resolver. While this behavior has the same problems as simply stripping the dot off of the Host header, I have no foothold with which to call this a bug. It&apos;s certainly undesirable behavior for my use case, but my best guess is that the standards allow it. Perhaps when I have time, I&apos;ll report this issue as a feature request.</p>
  518. <h2>Conclusions</h2>
  519. <p>I&apos;ve stated above that I feel that the trailing-dot version of a domain seems more correct to me than the version without a trailing dot. However, please don&apos;t take that to mean that I think all websites and/or <abbr title="Uniform Resource Identifier">URI</abbr> should make use of the trailing dot. Really, it&apos;s a matter of choice, and both options should be available. All I want is for Web clients to follow the standards so that such a choice is possible. My point about the trailing-dot version being more valid is that if one version of the domain is to be ruled out, it makes far more sense to require the trailing dot than to disallow it.</p>
  520. </article></blockquote>
  521. <hr/>
  522. <p>
  523. Copyright © 2016 Alex Yst;
  524. 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>.
  525. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  526. My address is in the source comments near the top of this document.
  527. This license also applies to embedded content such as images.
  528. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  529. </p>
  530. <p>
  531. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  532. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2FErrorDocument%2F400.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.%2FErrorDocument%2F400.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  533. </p>
  534. </body>
  535. </html>