- Click Start and type "View Network Connections.
- Right-Click your adapter that connects to the internet and choose properties
- Choose TCP/IP v4 and then click the "Properties" button
- At the bottom of the IP v4 properties window, select the radio button that says "Use the following DNS Server addresses" and enter in a primary and secondar DNS.
- You can view a recently updated list of options here: https://www.lifewire.com/free-and-public-dns-servers-2626062
- FWIW, I chose Google's, Primary: 126.96.36.199 and Secondary: 188.8.131.52
- Click OK out of all the windows and retry the Connect-PnP (or Connect-SPO) command.
Wednesday, March 29, 2017
Until today I had never received this error when trying to connect to SPO. If you get this error there's a good chance it's related to missing records on the DNS server your machine is relying upon. If not set, there's a good chance you're using your ISP's DNS servers, whose records may not be as up to date as others. The quick fix (at least for me) was to alter my DNS settings to point to more reliably up-to-date DNS. Here's a how to fix this issu (on Windows 10, if you aren't using windows 10, follow your OS instructions on updating DNS settings and then just jump to step 4 below) along with a few options for DNS settings that I tested: