Bug 509732

Summary: kio sftp does not perform host dns resolution correctly, possibly due to cache problem
Product: [Applications] dolphin Reporter: Yann Salmon <contact+bugs+kde>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kioclient log showing problem

Description Yann Salmon 2025-09-20 22:18:15 UTC
Created attachment 185125 [details]
kioclient log showing problem

SUMMARY

Accessing a sftp host on the LAN by name sometimes fails in Dolphin and kioclient

STEPS TO REPRODUCE
1. Have a computer with a permanent DHCP lease and a assigned name (ysalm-wifi) on the router's local DNS config
2. Power it on and also power on another computer (say local)
3. Do things on local, including sshing to ysalm-wifi.
4. Set ysalm-wifi to suspend.
5. Do things on local.
5. Power ysalm-wifi back up.
6. On local, in Dolphin or kioclient, navigate to sftp://ysalm-wifi.


OBSERVED RESULT

Get "No route to host" message.

EXPECTED RESULT

Accessing the host.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.14.0-29-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1245 v5 @ 3.50GHz
Memory: 31.2 Gio of RAM
Graphics Processor: NVIDIA GeForce GTX 1650/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: Precision Tower 3620

ADDITIONAL INFORMATION

Remote host is accessible by Dolphin/kioclient when using the IP address.

It is also accessible with ssh or sftp command, and resolvectl query finds it.

** kioclient finds the host again if resolvectl flush-caches is performed. **