Not really a KDE topic; network management — especially bulk, automatic network management — is more of a sysadmin thing that happens in the layers underneath Plasma.
Perhaps Change DNS Settings using the NMCLI utility - Infotechys.com could help you. If not, try a web search for “nmcli set default DNS” and you might find something more helpful.