Oct 17, 2011

Add dns record just for subdomain (Windows server 2008 ).


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:

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

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

Thank you very much for the help.


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

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

Related posts:

  1. Split DNS on Windows Server 2008 R2
  2. How to add a DNS record
  3. Windows Server 2003 Enterprise – How Can I Add a SPF Record to DNS?
  4. How can I add a secondary DNS server for specific record types?
  5. What happens when I change a Name Server record or an A record in the Zone file or the DNS settings?

Leave a comment