Open your device or router network settings
Find the DNS or DNS server option
Disable automatic DNS if enabled
Enter the preferred DNS server address
Enter the secondary DNS server address if needed
Save the changes
Restart the device or router if required
Verify the new DNS settings are active
