Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5251

Troubleshooting • curl: (6) Could not resolve host: google.com

$
0
0
Hi - For the past few months (since a big storm in the area which knocked out internet for several hours), I've been having all kinds of trouble with a Raspberry Pi running AWS Greengrass. I use the Pi to communicate with various Smart Plugs in the house and every few hours the Pi just freezes up. I've switched Pis from a 3b+ to a 4 and re-flashed the SD card but that hasn't helped.

I'll tend to get a "NameResolutionError" of some kind in the code and it'll freeze up. I can still ssh into the Pi but that's about it.

Here are a few errors I get when running different commands:

Code:

curl -v google.com* Could not resolve host: google.com* Closing connection 0curl: (6) Could not resolve host: google.comping -c3 8.8.8.8ping: connect: Resource temporarily unavailable
ifconfig

Code:

eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500        ether dc:a6:32:0d:33:ef  txqueuelen 1000  (Ethernet)        RX packets 0  bytes 0 (0.0 B)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 0  bytes 0 (0.0 B)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536        inet 127.0.0.1  netmask 255.0.0.0        inet6 ::1  prefixlen 128  scopeid 0x10<host>        loop  txqueuelen 1000  (Local Loopback)        RX packets 1043  bytes 89691 (87.5 KiB)        RX errors 0  dropped 0  overruns 0  frame 0        TX packets 1043  bytes 89691 (87.5 KiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500        inet 10.240.1.132  netmask 255.255.255.0  broadcast 10.240.1.255        inet6 fe80::c8e2:53af:1332:1107  prefixlen 64  scopeid 0x20<link>        ether dc:a6:32:0d:33:f1  txqueuelen 1000  (Ethernet)        RX packets 355470  bytes 173384859 (165.3 MiB)        RX errors 0  dropped 9  overruns 0  frame 0        TX packets 383423  bytes 43723027 (41.6 MiB)        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
route -n

Code:

Kernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Iface0.0.0.0         10.240.1.1      0.0.0.0         UG    600    0        0 wlan010.240.1.0      0.0.0.0         255.255.255.0   U     600    0        0 wlan0
My hunch is that it could be something with the linksys mesh router I have setup but I'm not really sure how to troubleshoot that. I have the MR8300 - Tri-Band AC2200 Mesh WiFi 5 Router and as far as I know it is setup with all the defaults. I have it plugged into the cable modem over ethernet so I can run a 2.5 GHz band for the smart plugs.

Anyone have any ideas as to what could be going on?

Statistics: Posted by natman829 — Sat Apr 13, 2024 9:34 pm



Viewing all articles
Browse latest Browse all 5251

Trending Articles