Post Aab5jZTO5DbRw9sDGC by ApisNecros@ioc.exchange
 (DIR) More posts by ApisNecros@ioc.exchange
 (DIR) Post #Aab5jZTO5DbRw9sDGC by ApisNecros@ioc.exchange
       2023-10-09T14:31:57Z
       
       0 likes, 0 repeats
       
       At $dayJob, I have a cron job that uses a #PHP script to #FTP into a service by host name. The script empties a directory, and then replaces the files.This weekend we switched name servers over to GoDaddy, and now the FTP commands, specfically "ftp_put" no longer work. The error I'm getting is "ftp_put(): php_connect_nonb() failed: No error (0)"The connection process still succeeds, as well as changing directories, but it stops here. I am using "ftp_pasv($ftp, true);" I also tried using FTP_USEPASVADDRESS to no avail.The IP for the server has not changed, and neither has the FTP config on the server, but I'm fairly certain the issue is server side. The server is running pure-ftpd (but the config file is readonly even for root?).Any ideas on what could be causing this?I also tried doing a test through the command line, and it also fails when I try to put a file. Included is packet capture of what the looks like. After the last line, it just hangs.#DNS #SysAdmin #boost
       
 (DIR) Post #Aab5jaJqw9ZQYsQ72O by tek@freeradical.zone
       2023-10-09T15:06:57Z
       
       0 likes, 0 repeats
       
       @ApisNecros Are you certain nothing else changed? Does the server use DNS for an allowlist of incoming FTP connections, and maybe cached a temporary NXDOMAIN or such?
       
 (DIR) Post #Aab8Sc4HTu9AvPjekq by ApisNecros@ioc.exchange
       2023-10-09T15:37:27Z
       
       0 likes, 0 repeats
       
       @tek I mean, to the extent of my knowledge, nothing changed. Now, I'm not the one that moved name servers, my boss did it, but even connecting by direct IP doesn't resolve it. As for whether the server uses DNS, I doubt it? My predecessor wasn't the most elegant when it comes to setting things up, and that sounds out of his style. A cached NXDomain, maybe? I'm really not sure where I'd find or troubleshoot something like that.
       
 (DIR) Post #Aab8yOAmg7t963vfOa by tek@freeradical.zone
       2023-10-09T15:43:15Z
       
       0 likes, 0 repeats
       
       @ApisNecros Maybe the server uses DNS for logging (“accepted connection from 1.2.3.4, foo.example.com”) or such? Might be worth checking if the server’s resolve.conf is pointed at the old registrar’s servers or such.And as always, have you tried restarting it? 😀