Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deb13:haconfig [2026/09/12 15:14] Bernard Condraudeb13:haconfig [2026/09/12 15:16] (current) – [Powershell] Bernard Condrau
Line 124: Line 124:
  
 ===== Powershell ===== ===== Powershell =====
-<code># D:\update-ddns.ps1 +<code># D:\update-dns.ps1 
-# This is an example for DuckDNS updater, see https://www.duckdns.org+# This is an example Powershell file for DuckDNS updater, see https://www.duckdns.org
 param($domain) param($domain)
 $duckdomain = if (!$domain) { "my-default-domain-name" } else { $domain } $duckdomain = if (!$domain) { "my-default-domain-name" } else { $domain }
 $addr = curl.exe -s "https://api.ipify.org" $addr = curl.exe -s "https://api.ipify.org"
 curl.exe -k "https://www.duckdns.org/update?domains=$duckdomain&token=xxxxxxxx-yyyy-zzzz-*my*-*duckdnstoken*&ip=$addr" curl.exe -k "https://www.duckdns.org/update?domains=$duckdomain&token=xxxxxxxx-yyyy-zzzz-*my*-*duckdnstoken*&ip=$addr"
 +</code>
 +Use it with ''C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -File "D:\update-dns.ps1"''