The easiest way to set Quad9 on your entire network is via your router settings. If you'd prefer to set Quad9 on a single system, please follow the steps below to configure Synology NAS to use Quad9.
Screenshots and instructions graciously provided by https://mariushosting.com
1. Go to Control Panel / Network / General.
2. Check “Manually configure DNS server”
3. Preferred DNS Server: 184.108.40.206
4. Alternative DNS Server: 220.127.116.11
5. Click "Apply".