Disabling DNS Cache in FTP Node

I need to disable DNS Caching in an FTP node. We’re not owners of that FTP server and looks like their setup gives stale content so I need to load it again every time to make it work.

I’m using it to upload a file (downloaded in the same workflow using a different FTP server) but I’m constantly getting the error getConnection: getaddrinfo ENOTFOUND <FTP server name>.

I tried using n8n AI and it tells me that it has successfully disable dns caching but it’s not true, it keeps failing. Is there any way to disable it? (The FTP1 node is the one failing).
Please share your workflow

The final node returns this error when trying to connect to the SFTP:

getConnection: getaddrinfo ENOTFOUND

Information on your n8n setup

  • n8n version: 1.119.1 (using n8n Cloud)
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system:

The issue with the `getaddrinfo ENOTFOUND` error in the FTP node is likely related to DNS resolution rather than DNS caching. First, verify that the FTP server’s hostname is correct and resolvable from your n8n environment. You can try using the server’s IP address directly in the FTP node settings instead of the hostname to bypass DNS resolution issues.

If the problem persists, ensure that your n8n instance has proper network access to the FTP server. Check firewall rules and DNS configurations on the server where n8n is running. If you’re using Docker, you might need to adjust DNS settings in your Docker configuration. Give that a shot!