My home router, a ZyXEL C2100Z, does not support NAT loopback, which leaves me in a bind when trying to access a site from my iPhone that I am serving publicly from a server within my home network.
When I am not at home, I can go to my site from the public internet and everything works fine. When I am at home connected to my network, I have to use a different address to get to this same server. My router supports Host mapping, so rather than going to mydomainname.com like I would on the public internet, I navigate to mydomainname, and I have my web server serving at both of those host names. This is a workaround, but certainly not my ideal solution.
On my laptop, this problem could be easily fixed by editing the hosts file, but I am trying to fix this problem specifically for the iPhones on my network. I am not interested in rooting the phones.
What I am wondering is if I can get around this problem by installing a DNS like OpenDNS on my home server and making my local network use that to resolve domain names, and just put in a single
A entry for my public site to route back to the local IP, and fallback to my ISP's DNS for everything else. If I do this I am assuming I just configure my router to use my local DNS server instead of my ISP's DNS server.
- Is this possible? (i.e. is that how it works?)
- Is there another way to accomplish what I am trying to do?
(Please know that I have seen similar questions with similar answers, but I am specifically distinguishing this question from others because I am wondering all ways to accomplish this specific scenario, iPhones on a NAT network with no NAT loopback.)