get-ip.sh internet: returns the first IP address found that has
internet access.
get-ip.sh local (or no argument): returns the list of non-loopback
IPs minus the one that has internet access.
This means that update-dns.sh now sends the first IP address that
does *not* have internet access.
./sbin/update-dns.sh may be called at regular intervals (one hour
or so) via crontab.
It will automatically detect:
- its local host name (*.lan.dougal.aaltronav.eu); and
- which IP has internet access, if any.
Armed with that information and with the dynamic DNS API password
stored in DYNDNS_PASSWD in ~/.dougalrc, it will update the relevant
DNS record.
For this to work, the first `lan.dougal` hostname in the Nginx
configuration must be the one that is set up for dynamic update.
Other `lan.dougal` hostnames should be CNAME records pointing to
the first one.