Name resolution working but now not working? What the Heck? #9107
-
Name resolution working, but not now? I had the socket connection via name working for weeks, now not working? I checked my DNS configuration and it works! Both forward and reverse lookup for the given name and address. But MP just recently stopped using name? What am I missing here?
Yes broker is CNAME record, or DNS alias. The actual server is 192.168.1.3, its AAA record is infrastructure.dd.org OSError -2 is bad WiFi credentials? But clearly I am connected, because socket connected via ip address. Really odd, scratching the head on this one. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 20 replies
-
Which board, which firmware version? And which version worked? |
Beta Was this translation helpful? Give feedback.
-
Right now using ESP8266 but plan to test on ESP32 later today. The broker.dd.org my local LAN broker, so this is not internet visible. I can connect via IP but not by name. I would have thought it was something in my local LAN DNS environment except direct nslookup works, from Linux, Windows, etc. I just happen to find a few Google hits on odd things happening with getaddrinfo in python so thought to ask if anyone else had seem the same behavior. I just found just a minute or so ago via Google search, where someone saw this odd error scenario where the WiFi credentials were part of the problem, this on straight python... which seems really odd, how can any TCP/UDP socket connect unless you have a valid IP from DHCP or static? And I noticed, that the ESP8266 is never dropping the connection completely. I am explicitly calling .active(False), but the ESP8266 reports .isconnected() is always returning true... very odd. I thank I am going to reflash the ESP module as well, and do some more testing. |
Beta Was this translation helpful? Give feedback.
-
Ok, so I got the above code working on ESP32 then tested on ESP8266. For whatever reason I was never seeing the following notification this morning on the ESP8266, which triggered the entire question... #7 ets_task(4020f560, 28, 3fff9430, 10) The interface was just not reseting or initializing. Auto reconnecting or something, and that in turn was failing or not fully reconnecting. All I really did was unplug the ESP8266, wrote the above script on ESP32 and tested on it, than connected the ESP8266 and ran the same script about a hour later on the ESP8266. |
Beta Was this translation helpful? Give feedback.
-
Ok... that worked correctly... now... Address [(2, 1, 0, '', ('142.250.188.228', 80))] So the core issue still seems to be the ESP8266 is getting stuck into some type of incomplete reconnect I guess. When it happens. The last few tests have worked. And I did re-flash to the latest nightly build to test the protocol stuff. The original issue was on the stable firmware image when I tripped over it. |
Beta Was this translation helpful? Give feedback.
Ok... that worked correctly... now...
Address [(2, 1, 0, '', ('142.250.188.228', 80))]
Address [(2, 1, 0, '', ('142.251.40.36', 80))]
So the core issue still seems to be the ESP8266 is getting stuck into some type of incomplete reconnect I guess. When it happens. The last few tests have worked. And I did re-flash to the latest nightly build to test the protocol stuff. The original issue was on the stable firmware image when I tripped over it.