GNU/Linux Desktop Survival Guide
by Graham Williams
Dynamic DNS (DDNS) supports the mapping of a static domain name to a dynamic IP address, so that your home computer can be accessed with the same host name from anywhere on the internet, even whilst your ISP changes your IP address. Such a service is available from a number of providers, including No-IP. After signing up for the free service (or for the paid service providing more alternatives and support), we can then choose a hostname like kayon.redirectme.net. Through the web interface at No-IP we can then assign an IP address.
The key advantage of a service like No-IP is the tracking of our changing IP address. For this to work we need to communicate the new IP address to the DDNS server. Some modems (such as the FritzBox modems) directly support DDNS and we simply need to configure the modem with the domain name, username and password for No-IP.
If the modem does not support DDNS, the we need to run a local script to update No-IP. For Debian and Ubuntu there is a package we can install: noip2. To configure noip2 we do the following:
$ wajig reconfigure noip2 Username: firstname.lastname@example.org Password: ******* Interval: 10 Host or Group: kayon.redirectme.net Network devince name: <blank> Disable NAT: No Shutting down dynamic address update: noip2. Auto configuration for Linux client of no-ip.com. 2 hosts and 1 group are registered to this account. Host kayon.redirectme.net selected. New configuration file '/var/lib/noip2/noip2.conf' created. Starting dynamic address update: noip2.
An older package no-ip
would be configured daemon with:
$ sudo no-ip -C Auto configuration for Linux client of no-ip.com. Please enter the login/email string for no-ip.com email@example.com Please enter the password for user firstname.lastname@example.org' ******** 1 host registered to this account. Do you wish to have host [kayon.redirectme.net] updated?[N] (y/N) y Please enter an update interval: Do you wish to run something at successful update?[N] (y/N) New configuration file '/etc/no-ip.conf' created. $ wajig start no-ip
Either way, the local no-ip daemon is now setup and operating, and regularly informaing the service of our IP address.
Copyright © 1995-2014 Togaware Pty Ltd