I have a Windows server with a private DNS server for the AD system named office.example.com
. The public domain name example.com
is managed by a hosting service and points to a public IP address. When I join a client to the office.example.com
domain, the name is sometimes resolved to the correct private IP address and sometimes to the incorrect public IP address. This causes connectivity issues for clients inside the domain. How can I configure DNS to ensure that office.example.com
always resolves to the private IP address?
Update
The last sentence is actually not what I intended to do.
This question was used as a guideline for my solution. My problem is, I am not sure how to apply the second suggested solution in reality:
Subdomain of an existing public domain name which will never be used publicly (e.g. corp.mycompany.com).