Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I host two websites that are accessable from the Internet by They are one-to-one NAT on an internal network. On the internal network, I would like to have the hosts type into there browser and the request go to instead of the public IP. I have 30-50 hosts on the network so going to everyone and modifying the host file is not really an option.

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, MariusMatutiae, Kevin Panko, Moses, Simon Sheehan Jun 18 '14 at 20:23

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Short Version: Get a router that supports full hairpin routing, or setup local DNS entries for that host/domain. – Ƭᴇcʜιᴇ007 Aug 26 '13 at 18:45
I support @techie007 's suggestion in a way: separate internal and external DNS servers, which is actually more secure anyway if implemented correctly. – BigHomie Aug 26 '13 at 18:53

Your description is a bit scary, in that the outside world has access to internal web servers. MDMoore's suggestion, about separate DNS servers, is accurate. I'd go one further and say that you should be hosting the web servers externally.

That being said, if you're forced to work with what you have, what you are seeking is the "view" feature in BIND9. Take a look at the following two links. Pay attention to the "acl" and "view" statements.

The short version of what this does is alters what is returned in response to a DNS query, based on the network address from where it was asked.

share|improve this answer

One solution is to set up your own DNS server.

This is quite reasonable solution for a network containing 30-50 hosts.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .