1. Open the guide by pressing the Xbox button on your controller.
  2. Move right to the System tab.
  3. Select Settings.

  4. Move down to Network.
  5. Select Network settings.
  6. Select Advanced settings.

  7. Make a note of your existing DNS servers on this screen, in case you need to re-enter them for some reason.
  8. Select DNS settings.
  9. Select Manual.
  10. Enter your new DNS servers. (For Cloudfare, it's 1.1.1.1 as the primary, and 1.0.0.1 as the secondary.)

  11. Once you have finished, press B to exit the menu, and the Xbox will check your connection to make sure everything is working correctly.