DNS Configuration

syseng1
syseng1 used Ask the Experts™
on
I have internal Active Directory DNS which is forwarding to our ISP DNS. I need to add DNS entry for "subdomain.domain.gov" to IP of 192.168.1.x, but allow all others to be able to be able to resolve to external DNS. When adding  host record in my DNS, I had to also create a new zone with the name "domain.gov" which included the A host record of host.domain.gov. The internal stuff still works, but all external resolution broke because now asking internal DNS which is now not forwarding.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Why not add a conditional forwarder for domain.gov?

You can find their names server with the following command:

nslookup
set type=ns
domain.gov

Commented:
Why did you create domain.gov in your DNS? Why not only host.domain.gov?
Create the zone. After the zone is created, add the A record, leave the hostname field  empty and only fill in the IP address.

Commented:
Don't forget to flush your DNS afterwards. Ipconfig /flusdns from an elevated command prompt.
Top Expert 2016
Commented:
The changes you made made you authoritative for domain.gov which you are NOT

DNS will first look for domain.gov and once it found it it will then use THAT dns server to lookup the subdomain.mydomain.gov which will work but subdomain2.mydomain.gov will fail.

Since this is to be used only on a limited number of machines then use the hosts file for subdomain.mydomain.gov to point to the local ip address.

That or use mydomain.LOCAL or mydomain.gov.local, that or the domain owner mydomain.gov needs to modify their dns records to point subdomain.mydomain.gov to your external address.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial