Wifi not connecting after erasing hard drive on Macbook Pro 13" 2019

I just erased my Macbook's hard drive (under MacOS Catalina) with touch bar from 2019.

When I turn on the computer I press cmd and R, the planet shows off and I've to select a network to connect to.

The problem is that it won't connect to any of my Wifi connexion, I tried on my initial Wifi and two repeater. I also tried to connect it to my 4G and still didn't established a connexion.

After looking into Apple's support, they suggested to test the DNS as explained here

After doing it, here is what I've got : lookupfailed

Sorry for the french but it means that the Lookup failed, it threw the same error for my LTE too.

So I'm a bit lost, I'm about to sell it but I don't know how I can fix this since my Apple Store is closed due to Covid.

Does someone have a hint about what I can do/how to proceed. I thought about booting it from a hard drive but I didn't find anything for the Macbook Pro 2019 since it has no USB port, but if it's possible I can do it since I have my work Macbook Pro available so if someone could provide me a link or anything that could help I would really appreciate.

Thanks for your help


Solution 1:

The problem, as you’ve confirmed, is a DNS issue. What’s happening is that your Mac has no way of finding the Recovery Host to connect to.

macOS Recovery Hosts and Ports

Normally, this is taken care of in the router. What happens is one of the two scenarios:

  • The router acts as a DHCP relay. In the DHCP offer, the DNS server value is the IP address of the router. So any DNS request is sent to the router which is then sent to the actual DNS server(s) that are either automatically configured from the ISP or manually configured by you.

  • The router passes the DNS server addresses as part if the DHCP offer. Whether automatically configured from the ISP or manually configured, the client (your Mac) gets the IPs of the actual DNS server(s) and makes the request directly.

If this is not happening...

  • check your router configuration and make sure the DNS values ate being set.
  • Manually set the DNS server in macOS with the command networksetup -setdnsservers Wi-Fi 8.8.8.8 (Google’s DNS server)

If fixing DNS proves fruitless, you may need use a working Mac to create a USB Installer. This will allow you to at least install the OS without needing the Internet and then, you can use whatever work around that fixes your DNS.