{"id":4293,"date":"2016-10-19T19:41:50","date_gmt":"2016-10-19T19:41:50","guid":{"rendered":"https:\/\/really.zonky.org\/?p=4293"},"modified":"2016-10-19T19:41:50","modified_gmt":"2016-10-19T19:41:50","slug":"ipv6-why-the-dns-is-so-important","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=4293","title":{"rendered":"IPv6: Why The DNS Is So Important"},"content":{"rendered":"<p>This is a bit of a thought experiment, so it may be not entirely correct (especially the maths &#8211; my probability theory is very rusty).<\/p>\n<p>One of the lesser reasons for using the DNS rather than IP4 addresses is that typing mistakes are more easily caught &#8211; if you intend to type 192.168.67.52, but accidentally enter 192.168.67.53 instead, you still have a valid IPv4 address. Whereas entering the domain name\u00a0<em>wombar.example.com<\/em> instead of\u00a0<em>wombat.example.com<\/em> will most likely get you an error instead of sending your secrets off to an unknown location on your network &#8211; unless you have a rather silly server naming convention of course!<\/p>\n<p>But how likely are you to make a mistake typing in an IPv4 address? According to a random web site &#8220;out there&#8221;, the average accuracy of a typist is 92%, or an\u00a0<em>average<\/em> of 8 typos per 100 characters. If we convert this into a probability, we get a probability of typing each character correctly as 0.92.<\/p>\n<p>Given that typing IPv4 addresses is something that some of us have a lot of practice at, and in many cases we will notice typos before they become a problem, I&#8217;m going to arbitrarily declare that the probability of getting any character within an IPv4 address\u00a0<em>correct<\/em> is 0.999. But to type in an IPv4 address correctly we have to get a maximum of 15 characters correct :-<\/p>\n<table>\n<tbody>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">1<\/td>\n<td style=\"height: 24px;\">2<\/td>\n<td style=\"height: 24px;\">3<\/td>\n<td style=\"height: 24px;\">4<\/td>\n<td style=\"height: 24px;\">5<\/td>\n<td style=\"height: 24px;\">6<\/td>\n<td style=\"height: 24px;\">7<\/td>\n<td style=\"height: 24px;\">8<\/td>\n<td style=\"height: 24px;\">9<\/td>\n<td style=\"height: 24px;\">10<\/td>\n<td style=\"height: 24px;\">11<\/td>\n<td style=\"height: 24px;\">12<\/td>\n<td style=\"height: 24px;\">13<\/td>\n<td style=\"height: 24px;\">14<\/td>\n<td style=\"height: 24px;\">15<\/td>\n<\/tr>\n<tr style=\"height: 24px;\">\n<td style=\"height: 24px;\">1<\/td>\n<td style=\"height: 24px;\">9<\/td>\n<td style=\"height: 24px;\">2<\/td>\n<td style=\"height: 24px;\">.<\/td>\n<td style=\"height: 24px;\">1<\/td>\n<td style=\"height: 24px;\">6<\/td>\n<td style=\"height: 24px;\">8<\/td>\n<td style=\"height: 24px;\">.<\/td>\n<td style=\"height: 24px;\">1<\/td>\n<td style=\"height: 24px;\">2<\/td>\n<td style=\"height: 24px;\">8<\/td>\n<td style=\"height: 24px;\">.<\/td>\n<td style=\"height: 24px;\">1<\/td>\n<td style=\"height: 24px;\">2<\/td>\n<td style=\"height: 24px;\">8<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>So the probability of getting all those characters right is 0.999 (first character) x 0.999 (second character) &#8230; Or\u00a0<em>0.999^15<\/em>.<\/p>\n<p>And once you work that out, subtract it from 1 (to get the probability of making a mistake) and convert it into a percentage, there is an 11% chance of making a typo in an IPv4 address.<\/p>\n<p>For an IPv6 address such as\u00a0<em>2001:db8:ca2c:dead:44f0:c3e9:28be:c903,\u00a0<\/em>which has 38 characters (no I&#8217;m not doing that silly table for IPv6) &#8211; <em>100 * (1 &#8211; 0.999 ^ 38)<\/em> &#8211; 32%.<\/p>\n<p>Now whilst my calculations may be a bit off, the likelihood of entering an IPv6 address incorrectly is nearly three times higher than the risk of entering an IPv4 address incorrectly.<\/p>\n<p>In other words, with IPv6 you\u00a0<em>really<\/em> need a good working DNS solution just to keep the errors to manageable levels.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-4294\" src=\"https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/dam-ip6.jpeg?resize=695%2C463&#038;ssl=1\" alt=\"dam-ip6\" width=\"695\" height=\"463\" srcset=\"https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/dam-ip6.jpeg?w=792&amp;ssl=1 792w, https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/dam-ip6.jpeg?resize=300%2C200&amp;ssl=1 300w, https:\/\/i0.wp.com\/really.zonky.org\/wp-content\/uploads\/dam-ip6.jpeg?resize=768%2C512&amp;ssl=1 768w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a bit of a thought experiment, so it may be not entirely correct (especially the maths &#8211; my probability theory is very rusty). One of the lesser reasons for using the DNS rather than IP4 addresses is that typing mistakes are more easily caught &#8211; if you intend to type 192.168.67.52, but accidentally <a href='https:\/\/really.zonky.org\/?p=4293' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[4],"tags":[748,1081,1006],"class_list":["post-4293","post","type-post","status-publish","format-standard","hentry","category-it","tag-dns","tag-ipv4","tag-ipv6","category-4-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-17f","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/4293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4293"}],"version-history":[{"count":3,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/4293\/revisions"}],"predecessor-version":[{"id":4297,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/4293\/revisions\/4297"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}