How to specify DNS servers?

I am using the Channels Server on Raspberry Pi4. Is there a way to specify the DNS servers that the Pi uses?

It should get them from the dhcp server on your router.

Yes, but I would like to have the Pi use a specific DNS server that would be different than the one issued by the router.

You could do that with nmcli I think if you setup SSH access.

Thanks.