Have you put conditional forwarding on from Domain B to Domain A.
You need to ensure that any requests for machines in Domain A from Domain B are forwarded to the correct DNS, at the moment it sounds like your Domain B is trying itself and then perhaps going outside, obviously that's failing so you need to use conditional forwarding.
Simon
The real world is not about exam scores, it's about ability.