DNS is normally configured during initial setup. If you need to later change your DNS settings, you can use NetworkManager's console utilities, nmtui and nmcli.
nmtui is NetworkManager's text-based user interface:
nmcli is NetworkManager's command-line interface: