I'm running an Ubuntu 18.04 Desktop workstation on a network that hosts a Windows domain. The Windows domain servers provide DNS resolution for local servers, but don't always provide accurate DNS resolution for remote servers. This means that, if I make a non-domain DNS server as my primary (such as Google's 8.8.8.8), I can resolve web servers but not local servers. If I put the domain controller as my primary DNS server, I can resolve local servers, but not some web servers (notably AWS Cloudfront endpoints).
Example with Google DNS as primary and domain controller as secondary:
nslookup localserver
Server: 8.8.8.8
Address: 8.8.8.8#53
** server can't find localserver: NXDOMAIN
Is there a way to get DNS resolution to check with the secondary DNS server in the event that the primary DNS server is unable to resolve a DNS name?