{"id":1091,"date":"2024-10-20T10:38:35","date_gmt":"2024-10-20T09:38:35","guid":{"rendered":"http:\/\/ghanim-solution.de\/?p=1091"},"modified":"2024-10-20T10:44:11","modified_gmt":"2024-10-20T09:44:11","slug":"dyndns-mit-ddclient-und-strato-unter-debian-ubuntu-einrichten","status":"publish","type":"post","link":"https:\/\/ghanim-solution.de\/index.php\/2024\/10\/20\/dyndns-mit-ddclient-und-strato-unter-debian-ubuntu-einrichten\/","title":{"rendered":"DynDNS mit ddclient und Strato unter Debian\/Ubuntu einrichten"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Voraussetzungen<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DynDNS ist in Ihrem <strong>Strato-Konto<\/strong> aktiviert.<\/li>\n\n\n\n<li>Ein Linux-Server mit Debian\/Ubuntu als Betriebssystem.<\/li>\n\n\n\n<li>Netzwerkschnittstelle (z. B. <strong>eth0<\/strong>) f\u00fcr die IPv6-Unterst\u00fctzung.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Damit Ihr Rechner die aktuelle IP-Adresse an den DNS-Server meldet, installieren Sie den <strong>ddclient<\/strong>, der die Aktualisierungen automatisch vornimmt. Strato verwendet das <strong>DynDNS v2-Protokoll<\/strong> von dyndns.org.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation von ddclient<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">F\u00fchren Sie die folgenden Befehle aus, um Ihr System zu aktualisieren und <strong>ddclient<\/strong> zu installieren:<\/p>\n\n\n\n<pre><code class=\"language-bash hljs\">sudo apt update\nsudo apt install ddclient<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">W\u00e4hrend der Installation werden Sie aufgefordert, einige Einstellungen vorzunehmen. Diese k\u00f6nnen Sie \u00fcberspringen, indem Sie \u201eWeiter\u201c w\u00e4hlen \u2013 wir nehmen die Konfiguration im n\u00e4chsten Schritt manuell vor.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Konfiguration von ddclient f\u00fcr IPv4 und IPv6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u00d6ffnen Sie die Konfigurationsdatei von <strong>ddclient<\/strong> mit einem Texteditor wie <strong>Nano<\/strong>:<\/p>\n\n\n\n<pre><code class=\"language-bash hljs\">sudo nano \/etc\/ddclient.conf<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L\u00f6schen Sie den gesamten Inhalt der Datei und f\u00fcgen Sie die folgende Konfiguration ein:<\/p>\n\n\n\n<pre><code class=\"language-bash hljs\">daemon=300\nsyslog=yes\nmail=root\nmail-failure=root\npid=\/var\/run\/ddclient.pid\nssl=yes\n\n# IPv4-Adresse aktualisieren\nuse=web, web=checkip.dyndns.com\/, web-skip='IP Address'\nserver=dyndns.strato.com\/nic\/update \nprotocol=dyndns2\nlogin=DEIN_DOMAIN_NAME \/\/ z.B example.de\npassword='DEIN_STRATO_PASSWORT'\ndomain.de, subdomain.domain.de, domain2.de\n\n# IPv6-Adresse aktualisieren\nuse=if, if=eth0\nusev6=yes\nprotocol=dyndns2\nlogin=DEIN_DOMAIN_NAME\npassword='DEIN_STRATO_PASSWORT'<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Erl\u00e4uterungen:<\/strong><\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>daemon=300<\/strong>: Aktualisierungsintervall von 300 Sekunden.<\/li>\n\n\n\n<li><strong>use=web<\/strong>: Ermittelt die IPv4-Adresse \u00fcber den Dienst <code>checkip.dyndns.com<\/code>.<\/li>\n\n\n\n<li><strong>use=if, if=eth0<\/strong>: Verwendet das Netzwerk-Interface <strong>eth0<\/strong>, um die IPv6-Adresse abzurufen.<\/li>\n\n\n\n<li><strong>usev6=yes<\/strong>: Aktiviert die Unterst\u00fctzung f\u00fcr IPv6.<\/li>\n\n\n\n<li><strong>login\/password<\/strong>: Ihr Strato-Domainname und Passwort.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u00c4nderungen speichern und ddclient starten<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Speichern Sie die Konfiguration und schlie\u00dfen Sie Nano (<strong>Strg+X<\/strong>, dann <strong>Y<\/strong> und <strong>Enter<\/strong>). Starten Sie den Dienst neu und aktivieren Sie ihn:<\/p>\n\n\n\n<pre><code class=\"language-bash hljs\">sudo systemctl restart ddclient\nsudo systemctl enable ddclient<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Manuelle Aktualisierung erzwingen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um eine Aktualisierung sofort zu erzwingen, f\u00fchren Sie folgenden Befehl aus:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<pre><code class=\"language-bash hljs\">sudo ddclient -force<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u00dcberpr\u00fcfung der Aktualisierung<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Loggen Sie sich in Ihr Strato-Konto ein und gehen Sie zu \u201eDomains\u201c. Dort sollte nun sowohl die aktuelle <strong>IPv4-<\/strong> als auch <strong>IPv6-Adresse<\/strong> Ihres Servers angezeigt werden.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Voraussetzungen Damit Ihr Rechner die aktuelle IP-Adresse an den DNS-Server meldet, installieren Sie den ddclient, der die Aktualisierungen automatisch vornimmt. Strato verwendet das DynDNS v2-Protokoll von dyndns.org. Installation von ddclient F\u00fchren Sie die folgenden Befehle aus, um Ihr System zu aktualisieren und ddclient zu installieren: sudo apt update sudo apt install ddclient W\u00e4hrend der Installation [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1093,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1091","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/posts\/1091","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/comments?post=1091"}],"version-history":[{"count":1,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/posts\/1091\/revisions"}],"predecessor-version":[{"id":1092,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/posts\/1091\/revisions\/1092"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/media\/1093"}],"wp:attachment":[{"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/media?parent=1091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/categories?post=1091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ghanim-solution.de\/index.php\/wp-json\/wp\/v2\/tags?post=1091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}