Menu

#24 winexe not resolving hostname

none
closed-invalid
nobody
None
high
2014-10-29
2012-07-18
Anonymous
No

Hi,

I'm setting up a new RHEL 6 server to replace an old RHEL 4 server. The following command works on 4, but not 6:

winexe -U username%password //my.server.com "cmd.exe"

Under RHEL 6 and running winexe on debug level 5, here is the message that seems to pinpoint the error:
sys_gethostbyname: Unknown host. my.server.com
added interface ip=127.0.0.1 nmask=255.255.254.0
ERROR: Failed to open connection - NT_STATUS_NO_MEMORY

I can ping my.server.com from the RHEL 6 server and get the correct ip address, so the server itself can resolve the dns entry.

And finally, on the RHEL box, these two both work:
winexe -U username%password -n my //127.0.02 "cmd.exe"
winexe -U username%password //127.0.02 "cmd.exe"

There's the --name-resolve switch, but I don't know what values to put there to see if that will fix it. In the real world, I won't be able to guarantee an ip address for the target windows computer because of the way our network is set up.

Any ideas?

Thanks!

Discussion

  • Thomas Hood

    Thomas Hood - 2013-04-17

    What version of winexe does this apply to?

    Do you have this problem with winexe built from the winexe-waf repository?

    https://sourceforge.net/p/winexe/winexe-waf/ci/master/tree/

     

    Last edit: Thomas Hood 2013-04-18
  • Thomas Hood

    Thomas Hood - 2013-08-22
    • status: incomplete --> closed-invalid
     

Log in to post a comment.