It´s easy in AdGuard:
- Go to Filter -> DNS Rewrites
- Add a new DNS-Rewrite
- Domain: dsm.example.com
- IP: 192.168.1.200
Now every client in LAN or Wifi connects directly to 192.18.1.200 while opening dsm.example.com. Outside the local network they will connected to the public IP.
It´s easy in AdGuard:
- Go to Filter -> DNS Rewrites
- Add a new DNS-Rewrite
- Domain: dsm.example.com
- IP: 192.168.1.200
Now every client in LAN or Wifi connects directly to 192.18.1.200 while opening dsm.example.com. Outside the local network they will connected to the public IP.