For an application on my Raspberry Pi Zero W I need WIFI access. Developing at home worked great, but when I try to connect to any other WIFI network than my home WIFI I just cannot establish any internet connection.
Following several tutorials I did the initial configuration on the headless system via the wpa_supplicant.conf looking like this:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=DE
network={
ssid="MYSSID"
psk="MYPW"
key_mgmt=WPA-PSK
}
I also set a static IP in my dhcpcd.conv via
interface wlan0
inform 192.168.0.100
When I now edit ssid and psk in the file to use some other WIFI the connection cannot be established. I test this via ping www.google.com which returns "temporary failure in name resolution". Switching back to the original WIFI credentials afterwards and the ping works fine again. I also tried adding the google-nameserver 8.8.8.8 and 8.8.8.4 to the /etc/resolv.conf without any impact.
FYI: /etc/os-release tells me "Raspbian GNU/Linux 10 (buster)" I tried "normal" routers as well as laptop or mobile hotspots. None work. I do not use any fancy network-software like pihole or anything alike just the plain default configuration. Does not matter weather i just reboot after wpa_supplicant change or use wpa_cli -i wlan0 reconfigure.
Any hints on what else to try?
Thanks and best regards.