Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I host two websites that are accessable from the Internet by podcast.example.com. They are one-to-one NAT on an internal network. On the internal network, I would like to have the hosts type podcast.example.com into there browser and the request go to 192.168.168.240 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, ϺОŞΣŞ, Simon Sheehan Jun 18 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.

1  
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

2 Answers 2

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 or ask your own question.