polling public IP of device and alerting

polling public IP of device and alerting

hello. 

I was wondering if it's possible to run a windows command like this "nslookup myip.opendns.com resolver1.opendns.com" to query the public ip and display it in under Network tab in devices. Also alert when this changes or is not in a whitelist (not sure if this is possible). Has anyone implemented such feature?

 

Thank you