Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The Unofficial Ubuntu Starter Guide
Prev Home Next

Q: How to assign Hostname to local machine with dynamic IP using free DynDNS service?

  1. Read General Notes
  2. Read How to add extra repositories?
  3. e.g. Assumed that internet connections have been configured properly
         Register free Dynamic DNS at https://www.dyndns.org
         Automatically refresh IP in DynDNS Database/DNS every hour
         * * * * * means minute hour date month year
  4. sudo apt-get install ipcheck
    sudo gedit /root/dyndns_update.sh
  5. Insert the following lines into the new file
    USERNAME=myusername
    PASSWORD=mypassword
    HOSTNAME=myhostname.dyndns.org
    
    cd /root/
    if [ -f /root/ipcheck.dat ]; then
      ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
    else
      ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
    fi
  6. Save the edited file (sample)
  7. sudo chmod 700 /root/dyndns_update.sh
    sudo sh /root/dyndns_update.sh
    export EDITOR=gedit && sudo crontab -e
  8. Append the following line at the end of file
    00 * * * * sudo sh /root/dyndns_update.sh
  9. Save the edited file
The Unofficial Ubuntu Starter Guide
Prev Home Next

 
 
  Published under the terms of the GNU General Public License Design by Interspire