Do you know what? You could do turn off dhcp in router and turn on adguard home with dhcp from raspberry pi. After that in router add manual IP address DNS from raspberry pi. Job done.

I had old router Huawei AX3 mesh and rasbeprry pi for Homeassistant with Adguard Home. Work perfect.
Now I upgraded new router Flint 2 and upgraded mini pc for proxmox with use home assistant, cctv connected to nas and docker. Better solutions that.

Anyway, I agree what @LupusE said.