DynDNS Configuration with DietPi - Error

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=11
    G_DIETPI_VERSION_RC=2
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’
  • Distro version
    bookworm
  • Kernel version
    Linux VPN 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64 GNU/Linux
  • Architecture
    amd64
  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    Virtual Machine (x86_64)
root@VPN:~# dietpi-ddns
[  OK  ] DietPi-DDNS | Removing DietPi-DDNS UNIX user
[ INFO ] DietPi-DDNS | Preparing unprivileged DietPi-DDNS UNIX group ...
[  OK  ] DietPi-DDNS | groupadd -r -p ! dietpi-ddns
[ INFO ] DietPi-DDNS | Preparing unprivileged DietPi-DDNS UNIX user ...
[  OK  ] DietPi-DDNS | useradd -r -g dietpi-ddns -G  -d /nonexistent -s /usr/sbin/nologin -p ! dietpi-ddns
[ INFO ] DietPi-DDNS | Testing DDNS update ...
[FAILED] DietPi-DDNS | DDNS update test failed, please check your input:
curl: (7) Failed to connect to ipv64.net port 443 after 3076 ms: Couldn't connect to server
root@VPN:~#

What could be the reason for this error?

Best regards
Jürgen

looks like this site is not reachable for you. Could be something blocking access. A firewall, or ISP. You can try ping ipv64.net to check if this at least is working.

And how can I solve the error?

Failed to connect to ipv64.net port 443

did you tried to ping? Not sure if you have an active VPN client running?

ping google.com works

Yes, it works.
I do not have an active VPN client

I mean did you tried to pingipv64.net?

Yes it works

is following working

curl -I https://ipv64.net

root@VPN:~# curl -I https://ipv64.net
HTTP/2 200
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
set-cookie: PHPSESSID=r4lguk1j4kgkrnr37bk3v8dfq1; path=/; secure; HttpOnly
x-frame-options: deny
strict-transport-security: max-age=31536000; preload
permissions-policy: geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()
vary: Accept-Encoding
x-xss-protection: 1; mode=block
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: no-referrer
content-type: text/html; charset=UTF-8
date: Thu, 27 Feb 2025 14:58:05 GMT
server: Apache

that looks like access to this site is working without issue. Are you able to check DDNS configuration again?

Unfortunately, I always get the same error

When I enter the domain update URL in the browser, I receive a positive response

If it only says “IPV6”, then it has now worked :slight_smile:

It seems that you are dual stack (both IPv4 and IPv6) and IPv6 has priority.
curl needs to run with -4 option to force IPv4.

1 Like