Connect your server to a real domain name and keep it reachable even when your ISP changes your IP
Most home internet plans assign a dynamic IP address — it changes periodically (daily, weekly, or when your router reboots). If someone bookmarks your site at 203.0.113.45, that address might be dead tomorrow.
Domain Name System is the phonebook of the internet. It translates human-readable names like google.com into IP addresses like 142.250.80.46. Without DNS, we would all be typing numbers.
A service that gives you a free domain name and automatically updates the IP address record whenever your home IP changes. You get a stable name like yourname.duckdns.org that always points to your current IP.
You have a local IP (like 192.168.88.8) that only works inside your house. Your router has a public IP that the entire internet sees. When someone visits your site from another city, they use your public IP.
203.0.113.45It is free, simple, and designed specifically for home servers. No credit card. No expiration. Just a subdomain and a token.
yourname.duckdns.orgType this inside nano (replace YOURNAME and YOUR_TOKEN):
Ctrl+O, then Enter, then Ctrl+Xchmod 700 makes the script runnable by only you./duck.sh runs itcat duck.log shows the result — it should say OKcron is Linux's built-in scheduler. It runs commands automatically at intervals you define. We will tell it to run your DuckDNS script every 5 minutes.
nano (option 1)Ctrl+O, Enter, Ctrl+XWait 2–3 minutes, then visit:
Replace with your actual DuckDNS subdomain.
cat ~/duckdns/duck.log should say OK.