Ofcourse they don’t work together unless you can set one to use the DNS server that the other tells to use. (very unlikely)
Both are using their own DNS servers.

If I ask for directions to a certain place I want to go and one person says I have to go left while the second on tells me to go right at the same time/place…
How the heck should I know which way to go ?