Hello,
What you are seeing is most likely normal behavior and not necessarily a WinSCP configuration issue.
WinSCP resolves the FQDN to an IP address using DNS before establishing the SFTP connection. Once the connection is initiated, the firewall generally only sees and logs the destination IP address and port, not the original hostname/FQDN used in the script.
That is why your network team sees only the IP address in their firewall logs while your WinSCP script correctly uses the DNS name.
If the vendor changes their server IP address, the DNS record updates, but your firewall rules that are based on static IP allowlists will still need to be updated manually unless your firewall supports FQDN-based rules.
You may want to discuss the following options with your network/security team:
Configure firewall rules using FQDN objects instead of static IP addresses (if supported by the firewall platform)
Allow automatic DNS resolution refresh for approved SFTP destinations
Request vendors to provide stable/static IP ranges
Use a proxy or gateway solution that handles DNS dynamically
From the WinSCP side, using the FQDN in the open sftp://user@hostname:port command is already the correct and recommended approach.
Happy New Year!
What you are seeing is most likely normal behavior and not necessarily a WinSCP configuration issue.
WinSCP resolves the FQDN to an IP address using DNS before establishing the SFTP connection. Once the connection is initiated, the firewall generally only sees and logs the destination IP address and port, not the original hostname/FQDN used in the script.
That is why your network team sees only the IP address in their firewall logs while your WinSCP script correctly uses the DNS name.
If the vendor changes their server IP address, the DNS record updates, but your firewall rules that are based on static IP allowlists will still need to be updated manually unless your firewall supports FQDN-based rules.
You may want to discuss the following options with your network/security team:
Configure firewall rules using FQDN objects instead of static IP addresses (if supported by the firewall platform)
Allow automatic DNS resolution refresh for approved SFTP destinations
Request vendors to provide stable/static IP ranges
Use a proxy or gateway solution that handles DNS dynamically
From the WinSCP side, using the FQDN in the open sftp://user@hostname:port command is already the correct and recommended approach.
Happy New Year!