Server Fault is a question and answer site for system and network administrators. 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

We host one web app on our server and the domain for this app is registerd at our isp and also the DNS records are there. From our company computers the app is accessible via internal IP (let's say IP A), and the outside adrress for this server is sometihg else (let's call it IP B).

What I want is that the domain for the app is resolved into ip A, when we are browsing on our company computers.

So when I sit at my company computer I want get the following:

  • -> ip B (our domain must still resolve into ip B)
  • -> ip A (only this subdomain must resolve into ip A)
  • -> ip B (any other subdomain for must resolve into ip B)

We are runing windows 2008 server with AD and DNS installed. If I add new zone "" under Forward Lookup Zones and then add A record for "some" which points to ip A, then it works as desired for "", but for anything else it doesn't.

Thank you very much for the help.

share|improve this question
Can you add a record to your ISP DNS servers? You should be able to add on there with your internal IP address with no risk. Anyone who looks up "" from the Internet will still get an internal result but this is only a cosmetic error really, as they won't be on your private network to be able to connect to that IP address...slightly ugly but should work. – gac Oct 17 '11 at 18:48
No this won't work. We still need for users outside our copmany to get "" corectlly resolved into ip B. – Primoz Oct 17 '11 at 18:54
Ahh, I see, I assumed this was for some kind of internal development environment. I'm not sure whether this is achievable on Windows, it would expect to act as authoritative for a whole domain rather than just one record within it. Is your external server a dedicated/VPS server? What OS is on it? BIND on a Unix OS can do this by using "views", but I don't think Windows Server offers this feature in its DNS Server role. – gac Oct 17 '11 at 19:13
up vote 3 down vote accepted

Add an authoritative zone for, and create an A record for @ (windows DNS calls this "(same as parent folder)") pointing to the internal address.

Requests for other records under will be forwarded or recursively looked up, as the server will only be authoritative for the zone.

share|improve this answer
It works and it's plain and simple solution. Thank you very much. – Primoz Oct 17 '11 at 19:40

You can create your subdomain zone ( on your internal DNS server, and set up that server as recursive, using your ISP as the forwarder. Then point your internal workstations to your internal DNS. Queries for any other subdomains of or itself will be forwarded to your ISP's DNS.

share|improve this answer

Your Answer


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.