Teams Gateway Questions (DOH filtering and Dynamic ips)

Hello,

How does Team Gateway filtering work with DNS over HTTPS or TLS if it all? How does one filter this kind of traffic?

If a location has a dynamic IP address, is there a way to get the IP address updated for that location so filtering does not get disrupted?

Thanks!