News:

  • September 29, 2026, 04:56:53 PM

Login with username, password and session length

Author Topic: Unknown error (-2) in DNSLOOKUP  (Read 8126 times)

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Unknown error (-2) in DNSLOOKUP
« on: February 21, 2019, 01:05:43 PM »
Hi folks. I'm trying to troubleshoot and support a PLC in a different country. DNS is DNS, right? Currently, I get this guy:
Attempted operation not supported by device in DNSLOOKUP @00003AB2 (DNSLOOKUP at NetworkTimeSet@19)
It's never been a problem on other projects. My CPU version info:
Do-more: 2.3.0
OS: 2.3.0
Booter: 3.0.7
FPGA: 3.7
Hardware: 7D

Any reason why I can't use DNSLOOKUP on this firmware? Also, what's an error (-2)?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Unknown error (-2) in DNSLOOKUP
« Reply #1 on: February 21, 2019, 01:25:12 PM »
I think that -2 is the result of a failed DNS lookup returning the wrong error, but the failure is real...meaning...the server wasn't able to resolve the name to an address.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

OrionHE

  • Sr. Member
  • ****
  • Posts: 90
Re: Unknown error (-2) in DNSLOOKUP
« Reply #2 on: February 21, 2019, 01:30:06 PM »
Ok. Oddly, the Error bit never gets set, and the wording "attempted operation not supported by device" makes me wonder. What device wouldn't allow this operation? H2-DM1-E? @IntEthernet?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Unknown error (-2) in DNSLOOKUP
« Reply #3 on: February 21, 2019, 01:32:19 PM »
Ok. Oddly, the Error bit never gets set, and the wording "attempted operation not supported by device" makes me wonder. What device wouldn't allow this operation? H2-DM1-E? @IntEthernet?

It's a known problem. The lowest level driver is returning a value on failure which is being misinterpreted as a different problem at the device level.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO