The EAI_NONAME - Neither nodename nor servname provided, or not known error in FileZilla FTP Client occurs when the FTP hostname cannot be resolved to an IP address. This means your DNS settings are incorrect, outdated, or misconfigured.
In this guide, we'll troubleshoot and fix DNS resolution failure for FileZilla step by step.
Before changing settings, test if your DNS can resolve the FTP hostname.
Win + R, type cmd, and press Enter.nslookup ftp.yourdomain.com
Expected Output:
Server: google-public-dns-a.google.com
Address: 8.8.8.8
Name: ftp.yourdomain.com
Address: 192.168.1.10
If you see:
*** dns server can't find ftp.yourdomain.com: NXDOMAIN
This means DNS is not resolving the FTP hostname correctly.
Use the dig or host command:
Using dig:
dig ftp.yourdomain.com
Expected Output:
;; ANSWER SECTION:
ftp.yourdomain.com. 300 IN A 192.168.1.10
If you see "NO ANSWER" or "NXDOMAIN", DNS is not resolving properly.
Using host:
host ftp.yourdomain.com
If the result returns an IP address, DNS is working.
If it says "Host not found," DNS is failing.
If DNS is failing, try connecting with an IP address instead of a hostname.
ftp.yourdomain.com to 192.168.1.10 (your FTP server's IP address)If the connection works, the issue is with DNS.
If the connection still fails, move to the next step.
If your computer is using an outdated DNS cache, clearing it can fix the issue.
Windows:
ipconfig /flushdns
macOS:
sudo killall -HUP mDNSResponder
Linux (systemd-based distros like Ubuntu, Debian, CentOS 8+):
systemd-resolve --flush-caches
Now restart FileZilla and try connecting again.
If DNS is not resolving correctly, manually add the FTP server to your hosts file.
Windows:
C:\Windows\System32\drivers\etc\hostshosts.192.168.1.10 ftp.yourdomain.comNow, FileZilla should recognize the hostname.
Linux/macOS:
sudo nano /etc/hosts
192.168.1.10 ftp.yourdomain.com
Now retry connecting in FileZilla.
If DNS resolution still fails, use a public DNS server like Google or Cloudflare.
Change DNS on Windows
8.8.8.88.8.4.4Change DNS on Linux
Edit the resolv.conf file:
sudo nano /etc/resolv.conf
Add:
nameserver 8.8.8.8
nameserver 8.8.4.4
Save and restart networking:
systemctl restart networking
Now retry your FileZilla connection.
If DNS is working but FTP still won’t connect, check your firewall settings.
Restart FileZilla and try connecting.
If using UFW (Ubuntu/Debian):
sudo ufw allow 21/tcp
sudo ufw allow 20/tcp
sudo ufw allow 990/tcp
sudo ufw reload
If using Firewalld (CentOS/RHEL):
sudo firewall-cmd --add-service=ftp --permanent
sudo firewall-cmd --add-port=990/tcp --permanent
sudo firewall-cmd --reload
Now FileZilla should be able to connect.
Some networks block Active FTP mode. Switch to Passive Mode:
Passive mode helps bypass firewall and NAT issues.
| Issue | Fix |
|---|---|
| Hostname not resolving (EAI_NONAME) | Use server IP instead of hostname |
| DNS lookup fails | Test with nslookup or dig |
| Outdated DNS records | Flush DNS using ipconfig /flushdns (Windows) or systemd-resolve --flush-caches (Linux) |
| DNS is misconfigured | Manually add FTP server to hosts file |
| Firewall blocking FTP | Allow FileZilla in firewall and open ports 21/990 |
| Active Mode Fails in FileZilla | Switch to Passive Mode in FileZilla settings |
Now FileZilla should connect without the EAI_NONAME error!