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:raspi [2026/03/02 14:45] – [Install OS] Bernard Condraudeb13:raspi [2026/03/02 15:45] (current) Bernard Condrau
Line 11: Line 11:
  
 ===== Install functionality ===== ===== Install functionality =====
 +==== Dynamic DNS ====
 +=== Find the external IP address ===
 +  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. 
 +
 +  wget "https://www.duckdns.org/update?domains={YOUR_SUBDOMAIN}&token={YOUR_TOKEN}&ip="
 +  
 +  echo "word" > filename.txt
 +  
 +  #!/bin/bash
 +  while read line; do
 +    word=( $line )
 +    echo $word
 +  done < $1
 +  if [ $word == "192.168.1.1" ]; then
 +    echo "equal"
 +  else
 +    echo "not equal"
 +  fi
 +
 +
 +==== Links ====
   * [[https://pimylifeup.com/raspberry-pi-duck-dns/|How to Set Up Duck DNS on the Raspberry Pi]]   * [[https://pimylifeup.com/raspberry-pi-duck-dns/|How to Set Up Duck DNS on the Raspberry Pi]]