{"id":3969,"date":"2012-08-20T23:58:40","date_gmt":"2012-08-20T21:58:40","guid":{"rendered":"http:\/\/daniel.haxx.se\/blog\/?p=3969"},"modified":"2012-08-20T23:59:17","modified_gmt":"2012-08-20T21:59:17","slug":"fixed-name-to-dynamic-ip-with-cname","status":"publish","type":"post","link":"https:\/\/daniel.haxx.se\/blog\/2012\/08\/20\/fixed-name-to-dynamic-ip-with-cname\/","title":{"rendered":"Fixed name to dynamic IP with CNAME"},"content":{"rendered":"<p><strong>Notice: this is not an advanced nor secret trickery. This is just something I&#8217;ve found even techsavvy people in my surrounding not having done so its worth being highlighted.<\/strong><\/p>\n<p>When I upgraded to fiber from ADSL,\u00c2\u00a0I had to give up my fixed IPv4 address that I&#8217;ve been using for around 10 years and switch to a dynamic DNS service .<\/p>\n<p>In this situation I see lots of people everywhere use dyndns.org and similar services that offer dynamicly assigning a new IP to a fixed host name so that you and your computer\u00c2\u00a0illiterate\u00c2\u00a0friends still can reach your home site.<\/p>\n<p>I suggest a minor variation of this, that still avoids having to run your own dyndns server on your server. It only requires that you admin and control a DNS domain already, but who doesn&#8217;t these days?<\/p>\n<ol>\n<li>Get that dyndns host name at the free provider that makes the name hold your current IP. Let&#8217;s call it <em>home.dyndns.org<\/em>.<\/li>\n<li>In your own DNS zone for <em>your<\/em> domain (example.com) you add an entry for your host &#8216;<em>home.example.com<\/em>&#8216; as a CNAME, pointing over to <em>home.dyndns.org<\/em><\/li>\n<li>Now you can ping or ssh or whatever to &#8216;<em>home.example.com<\/em>&#8216; and it will remain your home IP even when it moves.<\/li>\n<li>Smile and keep using that host name in your own domain to your dynamic IP<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Notice: this is not an advanced nor secret trickery. This is just something I&#8217;ve found even techsavvy people in my surrounding not having done so its worth being highlighted. When I upgraded to fiber from ADSL,\u00c2\u00a0I had to give up my fixed IPv4 address that I&#8217;ve been using for around 10 years and switch to &hellip; <a href=\"https:\/\/daniel.haxx.se\/blog\/2012\/08\/20\/fixed-name-to-dynamic-ip-with-cname\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Fixed name to dynamic IP with CNAME<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[286,346,219],"class_list":["post-3969","post","type-post","status-publish","format-standard","hentry","category-net","tag-dns","tag-fiber","tag-network"],"_links":{"self":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/3969","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/comments?post=3969"}],"version-history":[{"count":14,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/3969\/revisions"}],"predecessor-version":[{"id":4101,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/posts\/3969\/revisions\/4101"}],"wp:attachment":[{"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/media?parent=3969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/categories?post=3969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/daniel.haxx.se\/blog\/wp-json\/wp\/v2\/tags?post=3969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}