Nameresolution of WinVNC

Nameresolution of WinVNC

Postby Prisma » 2019-04-09 11:51

Hello Rudi,

we have several customers that are always connected to our repeater.
I we were forced to switch the repeaters host, we would simply change the DNS record of the repeaters FQDN (which has a very short TTL), shut down the old host, and that's it.
We expect WinVNC.exe to just reconnect to the new host.

The question now is:
Does the WinVNC.exe resolve the FQDN of the repeater a single time to an IP address and uses always this already resolved IP on reconnect if the connection is broken?
Or does the WinVNC.exe always resolve the IP address on reconnect? This would be good for the scenario above.

Would you please be so kind to have a short look on the source code?
Prisma
100
100
 
Posts: 294
Joined: 2005-10-27 15:50

Re: Nameresolution of WinVNC

Postby Rudi De Vos » 2019-04-10 21:14

name is resolved once
ip is used on reconnect
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5909
Joined: 2004-04-23 10:21

Re: Nameresolution of WinVNC

Postby Prisma » 2019-04-11 08:21

THX Rudi for looking.

Is there any chance to get a parameter in UltraVNC.ini to force DNS resolution (getHostByName() instead of IP) on reconnect to repeater in one of the next releases?
I think the described scenario is not so unique and the parameter would help some people. Especially those who have reverse connections / repeater running on a line with dynamically changing IP.

We would very very appreciate that.
Prisma
100
100
 
Posts: 294
Joined: 2005-10-27 15:50

Re: Nameresolution of WinVNC

Postby AnotherUVNCuser » 2019-04-11 13:15

I for one would very much welcome it :wink:
AnotherUVNCuser
20
20
 
Posts: 62
Joined: 2017-09-13 00:40


Return to 1.2.2.x

Who is online

Users browsing this forum: No registered users and 0 guests