apt remove --purge dnsmasq* fixed the issue. Thanks a lot. https://serverfault.com/questions/826872/return-a-records-but-not-aaaa-records-on-specific-domain-in-bind9/827217#827217