One way to resolve this would be to assign your router address as the DNS server on your client. With two networks, if you have a system on 192.168.1.x trying to ping a device on 192.168.0.x using hostname you could set the DNS server to 192.168.0.1 on that system.