I'm setting up a facility with many different computers where I don't have access to their hosts files. How would I map test.com to a local server without using the hosts file? Can this be done using a simple home router?
I'd like to be able to tell guests: "If you're on our wifi, you can just go to test.com to view our local website."
I'd prefer to keep answers hardware-agnostic, but if it helps, I'm using a D-link DIR-655.
I'm aware of this answer, but I don't think it addresses these issues directly: How can I map a domain name to an IP address and port? (Am I mistaken?)
Thanks!
Answer
I haven't found a home router that can run this without using some custom firmware. However, I use the same server running the sites to host a DNS server internally at home. All the machines point to the DNS server where I have a set of custom directs set up, and all other queries are sent to my ISP's DNS server to resolve correctly. I use DHCP to assign IP's and DNS server addresses to all the clients.
No comments:
Post a Comment