0

I have publicly accessible server "abc.example.com" that is physically located in my network. How to add it to my Windows Server 2012-based DNS server to resolve this server for the computers in my network locally?

In other words, if I ping abc.example.com it should be 192.168.0.X, not public address.

I added Forward Lookup Zone example.com and added A record abc. But it doesn't work for some reason. Computers in my network (domain example.local) are pointed to my DNS server only. I tried to add abc.example.com to HOSTS. It works but It's not a solution. Please help.

4
  • When you added the DNS zones what did you call the zone you added. example.com with an A record fo abc? or a zone called abc.example.com?
    – Drifter104
    Jul 24, 2015 at 8:13
  • 1
    What do you mean it doesn't work? The name doesn't resolve? You can't get to the server? Give us specifics. What happens when you query the A record with nslookup? Can you post a screenshot of the zone showing the A record?
    – joeqwerty
    Jul 24, 2015 at 15:46
  • I mean nslookup shows IP internal address correctly (as I want) but ping and other network services cannot communicate by this address
    – Nik
    Jul 24, 2015 at 17:43
  • Oh, I'm sorry, It seems I just misspelled domain name. It works now. Thank you!
    – Nik
    Jul 24, 2015 at 18:02

1 Answer 1

2

Generally: You do not. You would use a separate domain internally to avoid possible issues like that. What you call for is a split dns setup and those are tendiously to maintain because they are not properly debuggable from everywhere. For example in case of external DNS issues you would have to find an external site to debug them.

Best practices is to run separate domains - for example rename your internal network to local.example.com and thus the machine internally is abc.local.example.com

1
  • I'm sorry, what do you mean "You do not"? "I should not do so" or "It won't work"? From my point of view, it's not split dns setup. I just want to resolve example.com entirely internally. We do it normally all the time for domains like example.local. Own DNS does not attempt to resolve it on external DNS servers.
    – Nik
    Jul 24, 2015 at 17:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .