I am using tailscale on my NAS, Macbook and on my phone. At home I am running adguardhome on my NAS (similar to pi-hole) to block ads.
When I am not at home I would like my Macbook and mobile phone to use the NAS as the DNS when tailscape is connected on those devices.
The benefit would be that if I want to surf securely I would connect my phone to tailscale and it would automatically use my NAS as DNS hence I would see no ads on my phone.
As soon as I disconnect from tailscale my phone would again use my ISP’s DNS.
The only relevant article I found was this one: Subnet routes and relay nodes - Tailscale as it touches upon the subject but there they only route certain domains through tailscape.
Any help would be appreciated.
P.S. my NAS is running Debian.