Thanks to @Taylor and @Olli I fully revised my question.
Hi,
I'm developing a windows application in ubuntu. Everything is fine. The only problem is that every web call I perform with wininet.dll
is sent to localhost instead of target server.
I have no idea what's the problem and how to force wininet.dll to resolve domain name correctly.
I also created the hosts file in ~/.wine/drive_c/windows/system32/drivers/etc/hosts
and set domains and IPs manually; but did not help.
Any idea?
You can use
/etc/hosts
to do same thing. Format is at least almost the same, and there is examples in that file already in place.apt://Winetricks has an option to create an empty hosts file in your wine directory, which you can then edit in the same manner.
You could try the wininet.dll from windows. I believe there is a copy on dllfiles.com (not sure if this link is correct since I am calling from memory). In wine, you will have to set the dll to native then builtin (and remember to create a backup of wine's copy of the dll before installing).