1

I have mobile application which calls to an API (api.example.com) setup in web. For easy debugging purpose I would like to route this api calls to a server setup in my LAN. I have Bind9 setup on a machine and ADSL router has configured to use this DNS server. Also I've setup Apache virtual host for api.example.com.

So I'm interesting to know is there a way I can route/resolve api.example.com to my local apache server (192.168.1.5) by entering some records.

Gihan
  • 111

1 Answers1

1

Sure. Set up BIND and declare an authoritative zone for example.com with an A record pointing to 192.168.1.5.

You'll probably want to use wireless on your mobile device to have it use your LAN DNS server.

dmourati
  • 26,498