{"id":630,"date":"2013-09-08T12:59:00","date_gmt":"2013-09-08T10:59:00","guid":{"rendered":"https:\/\/lisas.de\/~adrian\/posts\/2013-Sep-08-dynamic-dns.html"},"modified":"2026-03-30T22:41:24","modified_gmt":"2026-03-30T20:41:24","slug":"dynamic-dns","status":"publish","type":"post","link":"https:\/\/lisas.de\/luges\/index.php\/2013\/09\/08\/dynamic-dns\/","title":{"rendered":"Dynamic DNS"},"content":{"rendered":"<p>For the last ten years I wanted to set up my own dynamic DNS service but was never motivated enough. Recently enough motivation was provided and using the scripts from <a href=\"http:\/\/www.fischglas.de\/software\/dyn\/\">http:\/\/www.fischglas.de\/software\/dyn\/<\/a> made it really easy to set up a dynamic DNS service using bind. Following changes were necessary to the <code>named.conf<\/code> file:<\/p>\n<div class=\"highlight\">\n<pre><span><\/span><code><span class=\"nx\">zone<\/span><span class=\"w\"> <\/span><span class=\"s\">&quot;dyn.domain&quot;<\/span><span class=\"w\"> <\/span><span class=\"k\">in<\/span><span class=\"w\"> <\/span><span class=\"p\">{<\/span> <span class=\"w\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"k\">type<\/span><span class=\"w\"> <\/span><span class=\"nx\">master<\/span><span class=\"p\">;<\/span> <span class=\"w\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"nx\">file<\/span><span class=\"w\"> <\/span><span class=\"s\">&quot;db.dyn.domain&quot;<\/span><span class=\"p\">;<\/span> <span class=\"w\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"nx\">allow<\/span><span class=\"o\">-<\/span><span class=\"nx\">update<\/span><span class=\"w\"> <\/span><span class=\"p\">{<\/span> <span class=\"w\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"nx\">key<\/span><span class=\"w\"> <\/span><span class=\"nx\">host<\/span><span class=\"p\">.<\/span><span class=\"nx\">domain<\/span><span class=\"p\">.;<\/span> <span class=\"w\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <\/span><span class=\"p\">};<\/span> <span class=\"p\">};<\/span> <\/code><\/pre>\n<\/div>\n<p>Whenever the IP address of my host changes I am loading a URL with my hostname and password encoded. The script behind the URL checks if my hostname and password is correct and updates the zone file using <code>nsupdate<\/code> with a TTL of 120 seconds.<\/p>\n<p>The script uses a simple configuration file (<code>\/etc\/dyn\/dyn.cfg<\/code>) with the following content:<\/p>\n<div class=\"highlight\">\n<pre><span><\/span><code>dns.key.name:host.domain. dns.key:yyeofEWfgvdfgdfgerX== authfile:\/etc\/dyn\/secrets dns.host:host.domain debug:0 <\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>For the last ten years I wanted to set up my own dynamic DNS service but was never motivated enough. Recently enough motivation was provided and using the scripts from http:\/\/www.fischglas.de\/software\/dyn\/ made it really easy to set up a dynamic DNS service using bind. Following changes were necessary to the named.conf file: zone &quot;dyn.domain&quot; in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-630","post","type-post","status-publish","format-standard","hentry","category-luges"],"_links":{"self":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/630","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/comments?post=630"}],"version-history":[{"count":6,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/630\/revisions"}],"predecessor-version":[{"id":1982,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/posts\/630\/revisions\/1982"}],"wp:attachment":[{"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/media?parent=630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/categories?post=630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lisas.de\/luges\/index.php\/wp-json\/wp\/v2\/tags?post=630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}