Free dynamic DNS on a Raspberry Pi
The rytrix DDNS client runs in the background on a Raspberry Pi and keeps a hostname pointed at your home IP, so you can reach the Pi from anywhere.
Register a hostname
Create a free account and register a host, for example
pi. Your full hostname is thenpi.d.rytrix.com. Copy the token the dashboard shows you. It's only shown once, and you can roll a new one at any time.Install the client
The rytrix command-line client runs on 64-bit Raspberry Pi OS and other 64-bit Linux distributions. Check with
uname -m: it should printaarch64. Then install it:curl -fsSL https://raw.githubusercontent.com/ryansonshine/rytrix-ddns-client/main/install.sh | sh
The script downloads the latest release, checks its SHA-256 checksum, and puts
rytrix-ddnson your PATH.Connect it to your hostname
rytrix-ddns setup
Enter
pi.d.rytrix.comand your token when asked. It sends a test update and prints the IP your hostname now points at.Keep it running
rytrix-ddns install sudo loginctl enable-linger $USER
installadds a systemd service. The second command lets it start at boot and keep running after you log out. The client checks your IP every 5 minutes, updates only when it changes, and checks in once a day so the host never expires. Read its log withjournalctl --user -u rytrix-ddns.Use it
Forward a port on your router to the Pi and reach it from anywhere at
pi.d.rytrix.com. Every name below it, such asapp.pi.d.rytrix.com, resolves to the same address. For HTTPS, point acme.sh, Traefik or Caddy at the acme-dns API to get a free Let's Encrypt certificate, wildcards included.The client is open source on GitHub.
Other guides: Free dynamic DNS on a UniFi router