Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Dynamic Host Name Mapping

A number of providers supply free Dynamic DNS services whereby a home user connecting through an ISP with dynamic IP addresses (the IP address changes on each new connection) can associate a host name with the IP address. This is like controlling a moving target, and works very well.

You can find your current IP address with:

  lynx -dump http://checkip.dyndns.org \
  | sed -n '/Current/s/.*: \([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)/\1/p'

or with

  wget http://www.whatismyip.org/ -qO - | html2text


Copyright © 1995-2018 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of the open source software Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.