Is there a way to fake a domain name

Please help!

I could not find a solution to the problem I have: http://stackoverflow.com/questions/33214264/ionic-emulator-unable-to-connect-to-lync-server

To make it shorter:

Is there a way to fake a domain name when I’m running the app in the emulator or phone?
I need the requests to go out with a domain so they would be authorized.

Any help would be appreciated!
Thanks.

You’d need to sort your own local DNS server so you can route the request to a location of choice. You may be able to do this on your router

Thank you very much for replying.
Could you elaborate please? how could DNS routing change the “Host” header of the http requests?