Ionic HTTP POST reply net::ERR_NAME_NOT_RESOLVED

Hi, I know that. Everything works fine with the IP. But the whole point doing this is that I should not find the ip from ipconfig. I have a mDNS server running which replies me the ip whenever i access something.local. This is the same which i need to do in the app. The app will then get the IP and the rest of the communication will work using the IP which is working fine in the same app too.