Avatar of jkirman
jkirman
Flag for United States of America asked on

How to set up an internal DNS zone for a single public domain DNS address

Greetings,

I have a client on a Windows 2012 server domain, which includes a Windows 2012 DC that is also running Exchange 2013 Standard.  The client has a regular external domain for its web site, call it mycompany.com., with their website at www.mycompany.com  The Active Directory DNS name for the internal company network is mynetwork.com, so the server that is the DC + Exchange 2013 server has an internal DNS name of exchange1.mynetwork.com.   The internal IP address of the DC / Exchange server is 192.168.1.10.  In the DNS records for mycompany.com, I've set up an A record of web1.mycompany.com that corresponds to the public IP address of the exchange server in order to provide iPhone email and OWA access.  Company iPhones are set up to access their email using web1.mycompany.com as the server.  This works fine when users are outside the office, and they can access web1.mycompany.com from their iPhones.  The problem I'm facing is how to give users iPhone access to their email when they're inside the office and using the internal wifi.  The wireless units get their DNS from either the DC or from the local ISP, but either way, it's not possible for web1.mycompany.com to resolve properly to the Exchange server when in the office.  As a test, I added a new Forwarding Zone to the DNS running on the DC for mycompany.com, and after adding an A record for web1.mycompany.com with an IP address of 192.168.1.10 to that DNS zone, my iPhone was able to resolve to get its email at web1.mycompany.com, but as you can figure, it also messed up being able to get to the company website www.mycompany.com when browsing from any PC  within the office.   I'm guessing I could modify the wireless units with something similar to a hosts file entry where web1.mycompany.com resolves to 192.168.1.10 but I'd prefer to do this by properly modifying the DNS on the DC, and the wireless units would then pull the DNS from the DC.  Can someone please provide the steps involved or a web link to how to do this?   Thanks in advance for your assistance.
DNSWireless Networking

Avatar of undefined
Last Comment
jkirman

8/22/2022 - Mon
SOLUTION
Patrick Bogers

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
footech

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jkirman

ASKER
Gentlemen, thanks for the suggestions.  Both approaches would work, but Footech you provided exactly what I was looking for, where only the host name of interest, in this case web1.mycompany.com, needs to be defined, and any other DNS inquiries towards mycompany.com would be passed up the line to the DC and out to the forwarders as regular DNS inquiries.  I've wanted to know how to do this for a while and now I finally have a simple solution for this.  Many thanks for the know-how.

Cheers!
Patrick Bogers

I like this solution as well. Never heard of ot to be honest.

For my understanding the trick here is simply add zone web01 with only a no named A record pointing to the Exchange server IP-adres  and all other queries will be forwarded normally?!
jkirman

ASKER
Patricksr1972, here's what I did:

1) added a Forward Lookup Zone called   web1.mycompany.com
2) added an A record with:

  - no name
  - IP address of 192.168.1.10

That was it.  By leaving the name blank, it defaults to "(same as parent folder)".  So internal DNS inquiries to web1.mycompany.com will resolve to the Exchange server, but any other inquiries to mycompany.com will be handled via the main server and will be forwarded to DNS forwarders and/or root hints.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck