I'm building a local 2008 R2 domain as a test case to be able to write a roadmap for the real new domain that needs to be created soon.

What I would like to know if I'm able to make a record in DNS that will point the domain name: www.example.com and example.com to one of the servers in my network.

I tried creating an a-record for it but that doesn't work. To be honest I'm not even sure if this is possible?

So can I do this? That way I would be able to fully test all our services (and webb app) offline before I build the real domain and switch the DNS records at the provider.

Some advice if possible and where to start is appreciated.

The solution (Thanks Brent):

  • Create new Forward lookup zone pointing to example.com
  • Create empty A record pointing to IP of the webserver you are targeting
  • If www is needed create A record with Name: www and IP of your webserver
  • sub domains repeat the process but then with names for example: sub or www.sub (and ip your webserver)
  • Be aware of the DNS Cache while you are in this process. Things can take time or do the following:
    • Right click the server and choose clear cache
    • in CMD: ipconfig /flushdns (to flush the client cache)
  • Just a note that running ipconfig/flushdns on the DNS server flushes the DNS client cache, not the DNS server cache. – joeqwerty Jun 6 '12 at 21:51
  • Glad to help... – joeqwerty Jun 6 '12 at 21:56

Just create a new forward lookup zone in your DNS box that matches the domain name you are trying to redirect.

We did this for ADFS to resolve fs.mydomain.com to a local IP.

So create a new forward lookup zone and then setup whatever A records you want it to resolve.

| improve this answer | |
  • Hi Brent, Ok sounds good I will try this now. Will report back in a sec. – Joost Verdaasdonk Jun 6 '12 at 20:18
  • Ok I've added the Forward lookup zone for the main domain. But now this lookup zone is pointing to the machine the DNS server is running on. What should I change in this zone to make this zone resolve to the network IP I want? Thanks – Joost Verdaasdonk Jun 6 '12 at 20:24
  • create an empty A record... so in Windows it looks something like .yourdomain.com -> IP – Brent Pabst Jun 6 '12 at 20:26
  • Ok I've created a new A record. Name I left blank so it resolves to parent and IP is the machine I'm targeting. But when I do a cmd: tracert mydomain.com I get: "unable to resolve target system name mydomain.com" I have a feeling we are getting close but I'm doing something wrong for sure. – Joost Verdaasdonk Jun 6 '12 at 20:30
  • What does an nslookup to that record say? – Brent Pabst Jun 6 '12 at 20:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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