Resolve external DNS name to internal IP

Is there a way to internally resolve an external domain name to a internal IP address? For a couple of applications to work both internally and externally I need to have mail.company.com resolved to an internal name/IP when connected locally.  

External - company.com - Externally hosted DNS
Internal - company.local

Internally mail resolves to the internal IP while mail.company.com resolves to an external IP but never connects.

Is there a zone I can create to resolve only mail.company.com internally and pass the rest onto the external DNS?

Thanks in advance
pmetechAsked:
Who is Participating?
 
Chris DentConnect With a Mentor PowerShell DeveloperCommented:

> Is there a zone I can create to resolve only mail.company.com internally and pass
> the rest onto the external DNS?

Sure.

Create a zone called "mail.company.com", then add a Host (A) Record with a blank name pointing at the internal IP.

The blank name should make the record appear as "(same as parent folder)".

With this method you only claim authority for mail.company.com so all other records within company.com are sent to external name servers as before.

HTH

Chris
0
 
Henrik JohanssonSystems engineerCommented:
Create the zone for company.com on the internal DNS server and add each host with its internal IP to the company.com hosted on the internal DNS server.
0
 
sentnerCommented:
If you want to override the DNS interenally for that zone, you'd have to create a complete zone file as far as I know.  Other option would be to set up a local hosts file entry on the affected systems, which would override it for just that one name, but is something you have to set up on each host.

0
 
pmetechAuthor Commented:
I cannot believe I did not think of this.  Thank you much.
0
 
Chris DentPowerShell DeveloperCommented:

You're welcome :)

Chris
0
All Courses

From novice to tech pro — start learning today.