Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

Nameresolution of WinVNC

Post Reply
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Nameresolution of WinVNC

Post by Prisma »

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?
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Nameresolution of WinVNC

Post by Rudi De Vos »

name is resolved once
ip is used on reconnect
Prisma
100
100
Posts: 320
Joined: 2005-10-27 15:50

Re: Nameresolution of WinVNC

Post by Prisma »

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.
AnotherUVNCuser
40
40
Posts: 68
Joined: 2017-09-13 00:40

Re: Nameresolution of WinVNC

Post by AnotherUVNCuser »

I for one would very much welcome it :wink:
Post Reply