Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We have a Windows Server 2008 R2 with a DNS, but the problem is our website is available form a different IP form outside (say 83.3.3.3) and different from inside (say 192.168.0.3). So is it possible to add a rule that (localy) would resolve www.mydomain.com to a 192.168.0.3 (while still resolving to 83.3.3.3 for the outside world)? Note that I would like to set it for all users of the internal network - something like etc/hosts but for all internal users.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You can use ISC Bind, which supports views. It return different addresses to different hosts.

http://zytrax.com/books/dns/ch7/view.html

share|improve this answer
    
We'll have to try that out, but seems to be exactly what we want :-). –  Nux Dec 9 '10 at 19:20

If I'm undesrstanding what you're asking, you'll need to create a zone on the internal DNS server for mydomain.com and then add an A record for www that resolves to the internal ip address of the web server.

share|improve this answer
    
You should mention that if he creates a zone on the internal DNS he will have to clone every RR from the public DNS below mydomain.com to the local server. Otherwise any Resource Record of mydomain.com that is only registered on the public DNS won't be accessible from the clients using the internal DNS. –  pacey Dec 8 '10 at 13:52
    
What if we already have an alias named www that refers to external IP? –  Nux Dec 9 '10 at 11:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.