It’s a lost cause. The router should be treated as hostile and shouldn’t be allowed to know anything if possible. DNS over HTTPS and that SNI encryption stuff should be used.
But uBlock origin and PiHole both do CNAME inspection to block this.
Is there other ways that ads are circumventing DNS ad-blockers such as PiHole?