Block domain using dns

Hello,

How can i block a domain with the subdomain using mikrotik dns.?

for example the ip of *.example.com is 127.0.0.1
IP of www.example.com will be 127.0.0.1
IP of example.com will be 127.0.0.1
IP of whatever.example.com will be 127.0.0.1

thank you