Ohops, was using wrong port numbers for remote servers in dnsmasq config. Fixed.