[clug] For dyndns junkies
Miller-Kelly, Cody
cody at themiller.co
Mon Aug 21 12:35:37 UTC 2017
The Signal Co. also run an IP site. (Disclaimer: I work there!)
wget -O - https <http://ozlabs.org/myip.shtml>://gimmeip.fyi -o /dev/null
You can also add ?json or ?xml to the URL to get the IP in those formats.
On Mon, Aug 21, 2017 at 9:41 PM, Stephen Rothwell via linux <
linux at lists.samba.org> wrote:
> 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
>
> --
> linux mailing list
> linux at lists.samba.org
> https://lists.samba.org/mailman/listinfo/linux
>
More information about the linux
mailing list