I'm trying to figure out how DNS resolution works on Windows. I have a PC with two NICs, each one linked to a different LAN (basically the first one is connected to the internet and the other one to the company network). Each of these NICs have a different domain and DNS configured : the first one has the ISP's default and the second one the company private domain and DNS Server. Resolving domains on the internet works fine, as well as resolving FQDN for the private DNS.
However, if I try to ping only hostnames (of devices on the company network), Windows only tries to resolve names on the ISP's DNS which results on a timeout. From the documentation I found on internet, I've read that Windows is supposed to ask the primary DNS and if it does not get an answer, tries the DNS on the other interfaces. It does not seem to be the case though. Did I miss something ? Does windows considers a negative answer from the primary DNS server as a definitive answer ? I don't think it is about prioritising one NIC or the other since it won't ever asks the secondary DNS.