31 May
2017
31 May
'17
11:13
On 2017-05-31 12:29, Ruediger Meier wrote:
On Wednesday 31 May 2017, Carlos E. R. wrote:
I use this because I've had bad experiences with dyndns and friends:
$ dig @resolver1.opendns.com myip.opendns.com +short
In a script I'm using it like below, inclusive error handling and validating the IP. Also easy to change the actual method in case it will break anytime.
Wow, that's a complex one :-) In the laptop I only log the external IP, I don't use it for anything, anyway. At home yes, I do use it; but I obtain the data querying my router instead. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))