[clug] For dyndns junkies

Stephen Rothwell sfr at canb.auug.org.au
Mon Aug 21 11:41:48 UTC 2017


Hi Andrew,

On Mon, 21 Aug 2017 20:10:11 +1000 Andrew Janke via linux <linux at lists.samba.org> wrote:
>
> IP=$(wget -O - http://icanhazip.com/ -o /dev/null)

This one may be closer/faster for many here (blowing our own orn :-)):

wget -O - http://ozlabs.org/myip.shtml -o /dev/null

Also for those who prefer curl:

curl -s http://ozlabs.org/myip.shtml

Also if you want to ensure you find your IPv4 address (in case you have
IPv6), just add "-4" to either of the above (or the original for that
matter).

-- 
Cheers,
Stephen Rothwell



More information about the linux mailing list