There is nothing like a primary or secondary DNS server.
See this for more details:
What you see seems to be correct. You need to change your configuration as you cannot rely on that one of the servers is getting preferred. If you still want to set it up like this, the strict-order
option may be helpful:
By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up. Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf