I have configured a firewall rule, but now suddenly the IP of a domain has been changed.
the domain name is: m2.tuyaeu.com
and I now have added the additional ip
The firewall works on IP addresses, it cannot resolve the domain name for each packet. You can configure it using the current IP address, but a domain name may resolve to multiple addresses, and those can change.
You can use an ipset, and populate it from dnsmasq, but you must also highjack DNS requests... not trivial.
I already have a dns block in place, but this one limits the amount of traffic,
for now I use the dns block and for network traffic limit I removed the destination IP