Strange pihole behaviour

Did you update Pi-hole by any chance ?
If so, have a read here:

EDIT: if want to know dnsmasq version, run below one:

dnsmasq -v