I want to accomplish few things for people in my local network with private local IP addresses.
- If someone types www.mydomain.abc, it's used as alias to some mysubdomain.herokuapp.com
- If someone types oursocialnetwork.local, they are taken to the internal server which is matched using MAC address (local IP addresses are dynamic)
- If a request does not match any domains in list then it just goes the usual way.
- Ideally do it without everyone having to define custom DNS server. (Can't the router see if DNS lookup request is being made and if for certain URL then return local IP, or IP for another site?)
So even though www.mydomain.abc doesn't exist officially in the real world, it does for everyone behind the router.