A plugin for that enables applications to manually resolve hostnames into an underlying network address. This is mostly useful for determining whether there is a problem with the device's DNS server configuration.
Supported platforms
Sample & How to - Click Here
Thanks @zegeba for Cordova Plugin Git Repository
Suggestions are most welcome !!