This is probably a noob question but I have a SMB network with AD domain corp.local and external hosting with a DNS domain corp.co.uk.
As a result if I add web services on an internal machine (like cool-app.corp.co.uk) we can't resolve it internally.
I tried adding a corp.co.uk domain to my DNS servers with no entries in it (expect the SOA created automatically). My understanding was that my server should attempt to resolve x.corp.co.uk within the forward lookup zone and when it cannot just forward the request to the outside world.
But that doesn't happen if I add a primary zone to the server then I can't resolve any corp.co.uk addresses.
If it had worked I'd then have started to add cool-app x.y.z.b etc to the local lookup zone so that those resources on the LAN can be resolved when you're in the office.
My guess is I'm making a silly mistake or that I'm trying to do something the wrong way and I thought the hivemind was the best way to try to find out...
Create a new forward lookup zone called cool-app.corp.co.uk. Inside that zone, create an A record with a blank host name and specify the IP address you want it to resolve to.
I do this all the time and it works perfectly.
If your internal DNS has a primary zone for corp.co.uk, and it's empty, then any queries to that zone will be returned as "non-existent" because the server thinks it knows all about that zone (and the request doesn't exist in what it knows).
If your internal DNS has no zone that matches corp.co.uk, it knows nothing; if it's configured to forward or recurse the query, it will look to the outside world (assuming it's connected somehow) and find the entry (if one exists in the external DNS server).
If you want, you can maintain your own zone internally, which has different entries than the external DNS server; but it's probably not advisable as your employees would be easily confused by the different DNS entries when they're inside vs outside the office. You can however, duplicate the external entries, and add additional internal entries. Just keep the primary zone you have now; duplicate all the external entries (www.corp.co.uk for example), and add your internal-only entries (such as cool-app.corp.co.uk).