Solved

Redirect Sub-Domain to external DNS server

Posted on 2014-11-26
4
1,043 Views
Last Modified: 2014-12-03
Hi Guys,

Is it possible to redirect a sub-domain in Windows Server DNS to an external DNS server?

Scenario:

We have an internal DNS server on Windows Server 2008 R2.
Our domain name is domain.com

I need to redirect sub.domain.com to the ISP external DNS server as it is hosted externally, but the problem is that the public IP changes dynamically (external) for sub.domain.com  
Hence, by redirecting sub.domain.com to the ISP, they will update the IP for the record accordingly.

Is this possible?
0
Comment
Question by:Rupert Eghardt
  • 2
  • 2
4 Comments
 
LVL 39

Accepted Solution

by:
footech earned 500 total points
ID: 40467819
So, if there is a domain "sub.domain.com" that is hosted externally, you should be able to reference it in a couple ways.  You can either create a delegation or a stub zone.  An advantage of a stub zone is that it will update its list of name servers dynamically, whereas a delegation won't.

Here's the instructions for creating the delegation.
 - First look up the SOA for the domain on the internet.
nslookup -q=soa sub.domain.com 8.8.8.8
 - Make note of the entry for primary name server.

 - Then in the DNS Management console, in the zone domain.com create a new delegation, type in "sub" for the name of the delegated domain, and then for the name server put in the FQDN of the previously noted primary name server from the nslookup results.

For a stub zone, you would create the zone "sub.domain.com" and tell it to use the noted primary name server as the master server.  You would also create a delegation in the "domain.com" zone, but this time it would use your own server as the name server.
0
 

Author Comment

by:Rupert Eghardt
ID: 40478196
Thank you!  Delegating the "sub" domain is working 100% :-)

Is there a way to delegate the root of the domain to another DNS server, in other words, "sub" will point to a local IP on the network, while the root (all other permutations for the domain) will point to an external DNS server?
0
 
LVL 39

Expert Comment

by:footech
ID: 40478910
I'm not sure if I'm understanding your scenario.
If you don't want a DNS server to know anything about a domain, then don't set up the domain as a zone.  Information about the domain can still be resolved through forwarders or root hints if available.  For example:
- example.com is the public domain name used for ineternet presence
- corp.example.com is the AD domain
- on the internal DNS for the AD domain, there would be a zone for corp.example.com with all records.  So a query for server.corp.example.com would be resolved using these records.
- any queries for something like www.example.com would be resolved through recursion - the internal DNS doesn't have the zone set up so uses forwarders or root hints to try to resolve the name.
0
 

Author Comment

by:Rupert Eghardt
ID: 40478960
Thank you!

I deleted the domain.com from DNS and added a zone sub.domain.com
Domain.com is now being handled externally.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us in IT utilize a combination of roaming profiles and folder redirection to ensure user information carries over from one workstation to another; in my environment, it was to enable virtualization without needing a separate desktop for each…
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question