Sorry Sys Prefs haschanged to Sytem Settings, How to fix a DNS problem?
For Ventura and Sonoma DNS settings are in System Settings -> WiFi -> Details -> DNS:
Enter...
8.8.8.8
8.8.4.4
Not on OS14 now, but have tried to interpret my old advice from Sys Prefs to Sys Settings...
System Settings>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
System Setttings>Network>choose interface>Advanced>Proxies Tab, make sure none are set, like for HTTP & HTTPS.
System Setttings>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
8.8.8.8
8.8.4.4
1.1.1.1
9.9.9.9
Apply.