I bought a new MacBook Pro 2021 M1, and I can't access URLs ending with .io, .xyz, and other less popular TLDs.
The issue does not come from the browser. I tried many browsers and the terminal commands ping and curl.
The error message I'm getting depends on which program I'm using to call the URLs. But basically, this is the message I'm getting: "Could not resolve host".
The URLs are all valid because I can open them from my phone, which is connected to the same WiFi network as my MacBook.
I'm sure the problem concerns the firewall (or DNS?). What can I do to fix this problem?
Edit: I used the following command:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder
It worked for a day and now it stopped working again. I didn't change any DNS or Firewall settings in the meantime.
host foobar.xyzand to see what Google’s DNS replies with usehost foobar.xyz 8.8.8.8. This will determine if the DNS server itself is correctly resolving the address. – Allan Jun 15 '23 at 13:48foobar.xyz has address 34.102.136.180 foobar.xyz mail is handled by 0 smtp.secureserver.net. foobar.xyz mail is handled by 10 mailstore1.secureserver.net.. The second command returns: `Name: 8.8.8.8 Address: 8.8.8.8#53 Aliases:foobar.xyz has address 34.102.136.180 foobar.xyz mail is handled by 10 mailstore1.secureserver.net. foobar.xyz mail is handled by 0 smtp.secureserver.net.`
– BonisTech Jun 16 '23 at 06:39traceroute 34.102.136.180– Allan Jun 20 '23 at 03:59traceroute to 34.102.136.180 (34.102.136.180), 64 hops max, 52 byte packets 1 kabelbox (MY_IP) 6.684 ms 3.323 ms 3.333 ms 2 * * * 3 ip5886c96d.static.kabel-deutschland.de (88.134.201.109) 18.467 ms 14.765 ms ip5886cb75.static.kabel-deutschland.de (88.134.203.117) 16.077 ms 4 145.254.3.170 (145.254.3.170) 16.226 ms 145.254.3.168 (145.254.3.168) 17.556 ms 18.070 ms…the list goes on9 180.136.102.34.bc.googleusercontent.com (34.102.136.180) 12.444 ms 15.216 ms 13.509 ms. It doesn't seem to throw an error – BonisTech Jun 21 '23 at 18:56ping foobar.xyzwork? – gshpychka Jun 22 '23 at 08:18