DynDNS for IoT?

I meet in some cases that to administrators and/or installers use upnp and some dynamic dns provider to access their property, IoT or anything else remote. 


Don't do this! 

In 2013 the US Computer Emergency Readiness Team (CERT) issued a vulnerability note on UPnP ( http://www.kb.cert.org/vuls/id/922681 ), in 2016 the German BSI issued a similar warning ( https://www.bsi-fuer-buerger.de/BSIFB/DE/Service/Aktuell/Informationen/Artikel/Botnetz_iot_24102016.html ) following the massive DDNS attack against the Internet service provider Dyn. I strongly recommend to disable UPnP on your router and not to use any UPnP based products.

But what is the solution?

Make your own gateway with any micro-computer (Arduino, Raspberry Pi, etc...), because the hackers attack this dynamic dns providers for IPs. You get your external IP (with a short script) and send (periodically) it to any database (Heroku, etc...or mysql of someone's website what you have access to ;)!!) with a simple API and that is all!