On 04-Nov-04 Paul Ryan wrote:
On Thu, 2004-11-04 at 15:17, James Knott wrote:
Paul Ryan wrote:
How can I determing the IP address of a server, when I use ping and then the ftp:// address I get the response unknown host.
????
How can you ping, if you don't know the IP or host name.
What application are you using? What happens if you use the ftp command.
I'm just trying to get the IP for a ftp install. When I use the browser or Gftp I conect with no problem but I can't determin the IP for a ftp install.
Since your browser and gftp can connect (presumably using the host
name) then you apparently can determine the IP address, since these
programs themselves need to do that before connecting.
The suggestion that "ping" may be blocked could be right.
Even so, the output from ping should show the IP address it is
trying, e.g. (this host does not respond to ping):
# ping dns1.btinternet.com
PING dns1.btinternet.com (194.73.73.172): 56 data bytes
--- dns1.btinternet.com ping statistics ---
8 packets transmitted, 0 packets received, 100% packet loss
You can try (you may need to do this as root):
dig -a the.host.name
If it can be found, then this will tell you the IP address,
as in:
# dig -a dns1.btinternet.com
; <<>> DiG 2.2 <<>> -a dns1.btinternet.com
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr rd ra; Ques: 1, Ans: 1, Auth: 4, Addit: 4
;; QUESTIONS:
;; dns1.btinternet.com, type = A, class = IN
;; ANSWERS:
dns1.btinternet.com. 35182 A 194.73.73.172
If this too fails, then you should look to your /etc/resolv.conf
file, which should include the IP address of at least one reachable
DNS server, on the lines of
nameserver 194.73.73.94
as well as a suitable "search" line.
Hoping this helps,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)