[Wine]Re: WINE and localhost IP

David Botha fermier at gmx.co.uk
Thu Mar 3 15:37:36 CST 2005


Thanks again Rein for your suggestions

> You must fix it if your program is trying to do exactly the same thing.
> 
> I already suggested, either:
> 1. the /etc/hosts file solution, see also below;
> 2. set up a DNS server, and make it so that the DHCP server passes the
> assigned IP addresses to it.

Concerning 1.  I told you that I already tried this before you suggested it.
 I have:

[root at khazad fermier]# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:11:2F:52:CB:4F
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:2fff:fe52:cb4f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:23225 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19703 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:24251252 (23.1 Mb)  TX bytes:2420057 (2.3 Mb)
          Interrupt:17 Memory:cdefc000-0

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2086 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2086 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:137516 (134.2 Kb)  TX bytes:137516 (134.2 Kb)

[root at khazad fermier]# vi /etc/hosts
[root at khazad fermier]# host khazad
;; Got SERVFAIL reply from 127.0.0.1, trying next server
Host khazad not found: 3(NXDOMAIN)
[root at khazad fermier]# hostname
khazad.tele2.fr
[root at khazad fermier]# cat /etc/hosts
127.0.0.1               localhost
192.168.0.2             khazad.tele2.fr khazad
192.168.0.3             falahmizar.tele2.fr falahmizar falahmizar

This give no solution.

Concerning the DNS option, it does  not seem to me that I can configure my
cheap router to host a DNS service.  It offers a DDNS service, but it asks
for a hostname and I think this means some other server is actually the DDNS
host.  Do you mean I should configure one of the Linux PC's as a DNS?
 
> I expect wine is doing the equivalent of "host khazad" command. You can
> try to debug this by starting wine like: "WINEDEBUG=+winsock wine ..."

This gives:

[fermier at khazad fermier]$ WINEDEBUG=+winsock wine
"d:\Programme\nettune\NCentral.exe"
trace:winsock:DllMain 0x406f0000 0x1 0x1
trace:winsock:WSAStartup verReq=101
trace:winsock:WSAStartup succeeded
trace:winsock:WS_gethostname name 0x1000edbc, len 63
trace:winsock:WS_gethostname <- 'khazad.tele2.fr'
warn:winsock:wsaHerrno h_errno 3.
trace:winsock:WS_gethostbyname "" ret (nil)
trace:winsock:DllMain 0x406f0000 0x0 0x1
[fermier at khazad fermier]$

It seems that WS_gethostbyname "" ret (nil); could be the problem, but I
realy haven't a foggy clue as to how I can fix that.

> Since I am only trying to do educated guesses, that may not do what is
> expected. Another possibility would be to try finding out what registry
> keys are being searched for. "WINEDEBUG=+reg" selects the registry
> debugging output.

Right this gives a lot of output, so much so that I had to forward it to a
file in order to get it all.  it is more than the buffer space of one
console:


trace:reg:NtOpenKey
(0x38,L"SYSTEM\\CurrentControlSet\\Services\\VxD\\MSTCP",20019,0x406bfcb8)
trace:reg:NtOpenKey <- 0x54
trace:reg:RegQueryValueExW
(0x54,L"EnableDNS",(nil),(nil),0x406bfcb0,0x406bfcb4=4)
trace:reg:NtQueryValueKey (0x54,L"EnableDNS",2,0x406bfb74,16)
trace:reg:RegQueryValueExW
(0x54,L"BcastNameQueryCount",(nil),(nil),0x406bfcb0,0x406bfcb4=4)
trace:reg:NtQueryValueKey (0x54,L"BcastNameQueryCount",2,0x406bfb74,16)
trace:reg:RegQueryValueExW
(0x54,L"BcastNameQueryTimeout",(nil),(nil),0x406bfcb0,0x406bfcb4=4)
trace:reg:NtQueryValueKey (0x54,L"BcastNameQueryTimeout",2,0x406bfb74,16)
trace:reg:RegQueryValueExW
(0x54,L"NameSrvQueryCount",(nil),(nil),0x406bfcb0,0x406bfcb4=4)
trace:reg:NtQueryValueKey (0x54,L"NameSrvQueryCount",2,0x406bfb74,16)
trace:reg:RegQueryValueExW
(0x54,L"NameSrvQueryTimeout",(nil),(nil),0x406bfcb0,0x406bfcb4=4)
trace:reg:NtQueryValueKey (0x54,L"NameSrvQueryTimeout",2,0x406bfb74,16)
trace:reg:RegQueryValueExW
(0x54,L"ScopeID",(nil),(nil),0x40965721,0x406bfcb4=127)
trace:reg:NtQueryValueKey (0x54,L"ScopeID",2,0x406bfb74,139)
trace:reg:RegQueryValueExW
(0x54,L"CacheTimeout",(nil),(nil),0x406bfcb0,0x406bfcb4=127)
trace:reg:NtQueryValueKey (0x54,L"CacheTimeout",2,0x406bfb74,139)
trace:reg:NtOpenKey
(0x38,L"Software\\Wine\\Wine\\Config\\Network",20019,0x406bfcb8)
trace:reg:NtOpenKey <- 0x54
trace:reg:RegQueryValueExA
(0x54,"WinsServer",(nil),(nil),0x406bfcbc,0x406bfcac=16)
trace:reg:NtQueryValueKey (0x54,L"WinsServer",2,0x406bfb74,256)
trace:reg:RegQueryValueExA
(0x54,"BackupWinsServer",(nil),(nil),0x406bfcbc,0x406bfcac=16)
trace:reg:NtQueryValueKey (0x54,L"BackupWinsServer",2,0x406bfb74,256)
trace:reg:GetSystemInfo si=0x0x406bfd14
trace:reg:NtOpenKey
((nil),L"Machine\\Software\\Wine\\Wine\\Config\\AppDefaults\\NCentral.exe\\DllOverrides",f003f,0x406bfa44)
trace:reg:NtOpenKey <- (nil)
trace:reg:NtQueryValueKey (0x14,L"MFC42LOC",2,0x406bfa20,80)
trace:reg:NtQueryValueKey (0x14,L"*MFC42LOC",2,0x406bfa20,80)
trace:reg:NtQueryValueKey (0x14,L"*",2,0x406bfa20,80)

The bits about enabling a DNS and the Winserver seem interesting, but I
cannot tell whether this succeeded or not.

> I think that the solution then was the same as now, fix the networking
> under Linux. And, yes, that is not a nice situation. But nobody has even
> come up with an idea how to change that within Wine.

Actually, I would prefer to have the networking under Linux to be fixed. 
This seems to me to be THE best solution of all.

Thanks again.
fermier

-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl



More information about the wine-users mailing list