This is an old revision of the document!
sudo apt update sudo apt upgrade
curl ifconfig.me: Displays your public IP address directly. curl -s ipinfo.io/IP: Alternative method to show only the IP. dig TXT +short o-o.myaddr.l.google.com @ns1.google.com: Queries Google's DNS server for your IP.
https://www.duckdns.org/update?domains={YOUR_SUBDOMAIN}&token={YOUR_TOKEN}&ip=