{"id":1202,"date":"2020-07-31T22:20:18","date_gmt":"2020-07-31T20:20:18","guid":{"rendered":"http:\/\/www.thelins.se\/johan\/blog\/?p=1202"},"modified":"2020-07-31T22:20:27","modified_gmt":"2020-07-31T20:20:27","slug":"adventures-in-dyndns","status":"publish","type":"post","link":"https:\/\/www.thelins.se\/johan\/blog\/2020\/07\/adventures-in-dyndns\/","title":{"rendered":"Adventures in (Dyn)DNS"},"content":{"rendered":"\n<p>So, I made the silly move to rely on my hardware supplier to provide me with a dynamic DNS service. Naturally, this offer expired, and I could no longer reach my home server. Because of Murphy, this naturally took place when I was away from home with no access to anything.<\/p>\n\n\n\n<p>So &#8211; how does one find the way back home?<\/p>\n\n\n\n<p>Luckily, I have a VPS that I log in to now and then. After a quick duck-ing (<a href=\"https:\/\/duckduckgo.com\/\">duckduckgo<\/a> is my friend), I found the <code><a href=\"https:\/\/linux.die.net\/man\/1\/last\">last<\/a><\/code> command which was the first piece of the puzzle. Now I had a list of potential IPs.<\/p>\n\n\n\n<p>Did I mention that I travel a lot?<\/p>\n\n\n\n<p>There were quite a few IPs there. Pre-COVID-19, it would have been worse. Still, I found a few likely candidates based on frequency of use. Then I found this handy list of <a href=\"https:\/\/www.nirsoft.net\/countryip\/se.html\">IP blocks<\/a> in Sweden. Now I could tell my mobile data provider (Telenor) from my fibre data provider (Bahnhof).<\/p>\n\n\n\n<p>Quickly adding my home domain and the suspected IP to <code>\/etc\/hosts<\/code> on my laptop allowed me to confirm my suspicions. Once in, I could setup <a href=\"https:\/\/www.duckdns.org\/\">duckdns<\/a> for dynamic DNS, change the <code>CNAME<\/code> record of my domain, and now all is operational again.<\/p>\n\n\n\n<p>I learned two things from this:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Don&#8217;t rely on the time limited offers of hardware vendors for even the most trivial service. They are all trying to convert you into a as-a-Service deal and make you pay an annual fee. (i.e. read the fine print).<\/li><li>I was really happy to use a <code>CNAME<\/code> record to redirect a subdomain of mine to my home server, so even when using a dynamic DNS service, I could switch to another dynamic DNS service. (this was pure luck &#8211; no foresight from my side was involved).<\/li><\/ol>\n\n\n\n<p>Also, while on the the topics of experiences. If you have the possibility, you should use <a href=\"https:\/\/www.bahnhof.se\/en\/index\">bahnhof<\/a> as your ISP. They have a track record of opposing surveilance laws and work to protect the privacy of their customers. Also &#8211; I&#8217;ve had zero issues with them since switching some 15 years ago, so I can recommend them from that perspective as well ;-)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I made the silly move to rely on my hardware supplier to provide me with a dynamic DNS service. Naturally, this offer expired, and I could no longer reach my home server. Because of Murphy, this naturally took place when I was away from home with no access to anything. So &#8211; how does &hellip; <a href=\"https:\/\/www.thelins.se\/johan\/blog\/2020\/07\/adventures-in-dyndns\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Adventures in (Dyn)DNS<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,15],"tags":[],"class_list":["post-1202","post","type-post","status-publish","format-standard","hentry","category-linux","category-personal"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/1202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/comments?post=1202"}],"version-history":[{"count":2,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/1202\/revisions"}],"predecessor-version":[{"id":1204,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/posts\/1202\/revisions\/1204"}],"wp:attachment":[{"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/media?parent=1202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/categories?post=1202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thelins.se\/johan\/blog\/wp-json\/wp\/v2\/tags?post=1202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}