title: How to resolve hostname in Cordova App?
body: <p>I am developing a android app using cordova. The app communicate to the server using socketio. The server resides in Local area network.
  The app is able to communicate to server using server's IP.
  What i want:
  The app should be able to communicate using server's hostname (server is running Ubuntu 16.04, if it matters).</p>
  <p>I have already tried following plugins in cordova:</p>
  <h1><a href="https://www.npmjs.com/package/cordova-plugin-dns" rel="nofollow noreferrer">https://www.npmjs.com/package/cordova-plugin-dns</a></h1>
  <h1><a href="https://www.npmjs.com/package/cordova-dns-plugin" rel="nofollow noreferrer">https://www.npmjs.com/package/cordova-dns-plugin</a></h1>
  <p>It may be working for websites but i want local server's hostname to be resolved. The server's hostname is 'inspiron' and i tried with 'inspiron' and 'inspiron.local' both.</p>