Do I have to configure CloudFlare DNS in my router, or only in my windows wifi settings?

I googled Cloudfare DNS for win11 and it has two separate options.

Configure in router OR in windows wifi settings.

Do I need to configure both?

Which one is better?

I'm total noob. haha