Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-13-2017, 11:17 PM   #1
LQ Newbie
Registered: Feb 2016
Posts: 8

Rep: Reputation: Disabled
"Name resolution failure"-- but already using IP address, there is no name to resolve


I am trying to connect to an FTP server that I am running from another device on my local network. This server is configured to listen for connections on port 2221 instead of the default 21. Trying to connect with

produces the following output:

ftp: Temporary failure in name resolution
(note: i get the same result if i omit the "ftp://")

If I try to ping I get the output "ping: unknown host"

I'm fairly sure I have the syntax wrong, somehow, but the ftp manpages contain no examples whatsoever of the proper syntax.

Any help would be much appreciated..thanks!

Please note....I acknowledge I may not be correct regarding this issue being caused by incorrect syntax, but I strongly suspect that it is, and I am not going to post logs for an issue having to do with typing the wrong syntax for a command. If that is not the case, we'll go from there. Thanks.
Old 05-14-2017, 03:12 AM   #2
Ser Olmy
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,318

Rep: Reputation: Disabled
The ftp command doesn't accept the ":<number>" syntax for specifying an alternative port number, so it thinks the address might be a hostname instead. The connect syntax is ftp <hostname> [<port>] (the port number should simply be the next parameter following the hostname or IP address).

As for the ping command, specifying a port name makes no sense at all as no ports are involved when sending or receiving ICMP packets.
2 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-add doesn't resolve "Agent admitted failure to sign using the key." jcope Linux - Newbie 1 06-21-2014 03:01 AM
wget - "Temporary failure in name resolution" connnor Linux - Newbie 3 08-09-2012 04:20 AM
Fedora Core 2: Screen Resolution can not change from "800X600" to "1024X 768" suhaimi_sj Fedora - Installation 18 12-17-2009 04:29 AM
Problems with wget... "Temporary failure in name resolution" beantier Linux - Newbie 1 04-19-2008 04:49 AM
"getaddrinfo failed: Temporary failure in name resolution" SammyK Linux - Networking 3 03-09-2005 12:43 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration