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.
On 04-Nov-04 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.
If you're getting "unknown host" then the hostname is not known
to the DNS (or at least that part of it which is accessible by
you: ISPs are not all equally good at keeping their DNS servers
up to date). This could be due to the possibility that the DNS
servers you are able to access are (probably temporarily)
deficient (DNS relies on machines "broadcasting" themselves to
it periodically, so if a machine shuts down for a while then
it may disappear from the DNS; it also relies on DNS servers
regularly updating their databases, so a DNS server may skip
an update and lose some things for a while).
It could also be due to the machine in question simply having
ceased to exist, or having changed its name. The latter is not
uncommon.
The basic response is that if it's not on the DNS then you
can't find out in the sense of "what *is* the IP address".
However, there's always the possibility that a Google search
on the machine name may throw up a hit which also shows the
IP address at the time the Google item was first created.
Best wishes,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)
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.
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.
On Thursday, 4 November 2004 15.49, Paul Ryan wrote:
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.
Is this a server that's local to you, or are you trying to get the IP of one of the official mirrors? If you can connect with a browser or gftp but you can't ping it, then perhaps it's blocking pings. Try "nslookup <hostname>", for example, or "host <hostname>"
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.
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.
If you can connect using ftp but not using ping, it may be the server is behind a firewall that disallows ICMP connections like ping. Or possibly you are behind such a firewall; can you ping other sites? I don't understand why you need an IP address for 'a ftp install', whatever that is exactly. Why not use the name? But in any case, you can get the IP address using a DNS lookup service. Try http://www.dnsstuff.com/ at the top right. Cheers, Dave
On Thu, 2004-11-04 at 10:06, Dave Howorth 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.
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.
If you can connect using ftp but not using ping, it may be the server is behind a firewall that disallows ICMP connections like ping. Or possibly you are behind such a firewall; can you ping other sites?
I don't understand why you need an IP address for 'a ftp install', whatever that is exactly. Why not use the name?
But in any case, you can get the IP address using a DNS lookup service. Try http://www.dnsstuff.com/ at the top right.
Cheers, Dave
Try: System->YaST->Change Source of Installation->Add->FTP <dialogue box opens> Protocol: FTP Server Name: ** this field will accept only an IP address ** <snip> You need an IP address to install SuSE via ftp under YaST. regards, - Carl
On Thu, 2004-11-04 at 10:33, Carl Hartung wrote:
Server Name: ** this field will accept only an IP address ** <snip>
You need an IP address to install SuSE via ftp under YaST.
regards,
- Carl
Oops! Sorry!... I jumped the gun and am blushing now .. I think the "IP address only" restriction in this field is only encountered when installing SuSE via ftp using "ncurses," i.e. the text-based YaST, after booting from a floppy... many apologies, folks... - Carl
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)
On Thu November 4 2004 7:54 am, Ted Harding wrote:
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
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
Thanks for the excellent suggestion and example Ted. Another method (assuming you have access with a web browser) is to use the following site... http://www.bankes.com/nslookup.htm I've used this in the past to find SuSE's IP address when doing an ftp install of SuSE 9.0. Just a thought -- dh Don't shop at ZipZoomFly.com!
On Thu, 2004-11-04 at 16:54, Ted.Harding@nessie.mcc.ac.uk wrote:
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.
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.
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.
dig is interesting and confusing at the same time check this out I'm not sure if Suse redirects or what. I cann't see how two sites could have the same IP address. Sorry that I didn't cut some of this but I wasn't sure as to what is important. papa@linux:~> dig ftp://ftp.gwdg.de/pub/linux/suse/ ; <<>> DiG 9.2.3 <<>> ftp://ftp.gwdg.de/pub/linux/suse/ ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36365 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;ftp://ftp.gwdg.de/pub/linux/suse/. IN A ;; AUTHORITY SECTION: . 3600 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2004110400 1800 900 604800 86400 ;; Query time: 84 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:26 2004 ;; MSG SIZE rcvd: 126 papa@linux:~> dig ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse ; <<>> DiG 9.2.3 <<>> ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 16003 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse. IN A ;; AUTHORITY SECTION: . 3600 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2004110400 1800 900 604800 86400 ;; Query time: 155 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:38 2004 ;; MSG SIZE rcvd: 133 papa@linux:~> I get the same results as root and with -a I get Invalid option: -a interesting Thanks for all of the answers
On 04-Nov-04 Paul Ryan wrote:
On Thu, 2004-11-04 at 16:54, Ted.Harding@nessie.mcc.ac.uk wrote:
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.
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.
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.
dig is interesting and confusing at the same time check this out I'm not sure if Suse redirects or what. I cann't see how two sites could have the same IP address. Sorry that I didn't cut some of this but I wasn't sure as to what is important.
************ I'll break into the message here because it's the most logical place. The first clue is "ANSWER: 0" in each case. This means that 'dig' got no answers, i.e. DNS couldn't resolve your query. The second clue is that the "same IP address" for the "two sites" is given as "SERVER: 217.237.151.161#53(217.237.151.161)". This means that 217.237.151.161 is the IP address of the DNS server which 'dig' went to (and which couldn't return an answer to your query). The *BIG* clue, however, is the fact that you asked it to resolve the "host" ftp://ftp.gwdg.de/pub/linux/suse/. This isn't a host: it's a net protocol (ftp://) glued to a machine name "ftp.gwdg.de" glued to a directory (/pub/linux/suse). In fact it's a complete URL, which is a composite object (as described), and will not be recognised as a machine name by the DNS server. What you need to do is dig ftp.gwdg.de and you should get it. Clearly all is in order with your DNS setup, since you are getting a DNS server IP address returned. [See also at end regarding "-a"]
papa@linux:~> dig ftp://ftp.gwdg.de/pub/linux/suse/
; <<>> DiG 9.2.3 <<>> ftp://ftp.gwdg.de/pub/linux/suse/ ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 36365 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;ftp://ftp.gwdg.de/pub/linux/suse/. IN A
;; AUTHORITY SECTION: . 3600 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2004110400 1800 900 604800 86400
;; Query time: 84 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:26 2004 ;; MSG SIZE rcvd: 126
papa@linux:~> dig ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse
; <<>> DiG 9.2.3 <<>> ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 16003 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION: ;ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse. IN A
;; AUTHORITY SECTION: . 3600 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2004110400 1800 900 604800 86400
;; Query time: 155 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:38 2004 ;; MSG SIZE rcvd: 133
papa@linux:~>
I get the same results as root and with -a I get Invalid option: -a
interesting
It seems that 'dig' has changed recently. "-a" used to be accepted. 'dig' on its own should work fine anyway.
Thanks for all of the answers
Best wishes,
Ted.
--------------------------------------------------------------------
E-Mail: (Ted Harding)
On Thursday, 4 November 2004 21.04, Paul Ryan wrote:
papa@linux:~> dig ftp://ftp.gwdg.de/pub/linux/suse/ <snip> I get the same results as root and with -a I get Invalid option: -a
You need to use the host name, not the full URL. The hostname in the above is ftp.gwdg.de try host ftp.gwdg.de It should tell you the address is 134.76.11.100
On Thu, 2004-11-04 at 21:06, Anders Johansson wrote:
On Thursday, 4 November 2004 21.04, Paul Ryan wrote:
papa@linux:~> dig ftp://ftp.gwdg.de/pub/linux/suse/ <snip> I get the same results as root and with -a I get Invalid option: -a
You need to use the host name, not the full URL. The hostname in the above is ftp.gwdg.de
try
host ftp.gwdg.de
It should tell you the address is 134.76.11.100
Thank You much that was the solution gave me the information that I need !! Does anyone have an explanation as to why dig gave me the same IP for two differnt servers though just out of cuiosity
Paul Ryan wrote:
On Thu, 2004-11-04 at 21:06, Anders Johansson wrote:
On Thursday, 4 November 2004 21.04, Paul Ryan wrote:
papa@linux:~> dig ftp://ftp.gwdg.de/pub/linux/suse/
<snip>
I get the same results as root and with -a I get Invalid option: -a
You need to use the host name, not the full URL. The hostname in the above is ftp.gwdg.de
try
host ftp.gwdg.de
It should tell you the address is 134.76.11.100
Thank You much that was the solution gave me the information that I need !!
Does anyone have an explanation as to why dig gave me the same IP for two differnt servers though just out of cuiosity
Was is actually two different servers? Or just two different host names. An IP address must be unique to one host, but a host can have multiple host names.
Paul, El Jue 04 Nov 2004 15:04, Paul Ryan escribió:
dig is interesting and confusing at the same time check this out I'm not sure if Suse redirects or what. I cann't see how two sites could have the same IP address. Sorry that I didn't cut some of this but I wasn't sure as to what is important.
; <<>> DiG 9.2.3 <<>> ftp://ftp.gwdg.de/pub/linux/suse/ (...) ;; Query time: 84 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:26 2004 ;; MSG SIZE rcvd: 126
; <<>> DiG 9.2.3 <<>> ftp://ftp.rz.uni-ulm.de/pub/mirrors/suse < (...) ;; Query time: 155 msec ;; SERVER: 217.237.151.161#53(217.237.151.161) ;; WHEN: Thu Nov 4 20:48:38 2004 ;; MSG SIZE rcvd: 133
The SERVER 217.237.151.161 referred to in the last last lines of dig's output is the nameserver dig queried against, not the IP of the hosts you were querying for. To query for the IP of an Internet-connected host, you just will have to give the fully qualified hostname. There is no need to specify the ftp:// protocol or indicate any directories of the given host. So, just do "dig ftp.gwdg.de" and "dig ftp.rz.uni-ulm.de" and you will get the answers you are looking for in dig's ANSWER section. Regards, -- Andreas Philipp Noema Ltda. Bogotá, Colombia
Somehow it shouldn't be necessary to contact the unknown machine using ping or anything else, since the necessary information must reside on a nameserver that presumably is accessible. That changes the question to: how do you locate the necessary nameserver, and once you've located it, how do you ask it for the IP address corresponding to the host name? Paul
The Thursday 2004-11-04 at 20:43 -0500, Paul W. Abrahams wrote:
Somehow it shouldn't be necessary to contact the unknown machine using ping or anything else, since the necessary information must reside on a nameserver that presumably is accessible. That changes the question to: how do you locate the necessary nameserver,
Your ISP must give you that information. Or, you may use the root servers and build the chain.
and once you've located it, how do you ask it for the IP address corresponding to the host name?
There is a howto that answers that question in detail: /usr/share/doc/howto/en/txt/DNS-HOWTO.gz In practical terms: host nametobefound Quite easier than using dig. -- Cheers, Carlos Robinson
On Thursday 04 November 2004 9:40 pm, Carlos E. R. wrote:
In practical terms:
host nametobefound
So isn't that the easy answer to the original question about getting the IP address for the SuSE ftp site (and one that doesn't depend on the site being pingable)? Paul
The Thursday 2004-11-04 at 21:56 -0500, Paul W. Abrahams wrote:
On Thursday 04 November 2004 9:40 pm, Carlos E. R. wrote:
In practical terms:
host nametobefound
So isn't that the easy answer to the original question about getting the IP address for the SuSE ftp site (and one that doesn't depend on the site being pingable)?
Yes, I think so. The problem is, of course, windows: a quick search of my windows partition does not show a host.exe or com file. And a new user installing linux by FTP is probably using windows to try get that info, and "ping" is the common thing to do. -- Cheers, Carlos Robinson
Today at 1:45pm, Carlos E. R. wrote:
The problem is, of course, windows: a quick search of my windows partition does not show a host.exe or com file. And a new user installing linux by FTP is probably using windows to try get that info, and "ping" is the common thing to do.
However, Windows (NT, at least) _does_ have the precedessor to host, nslookup: C:\WINNT\system32\nslookup.exe Jim
The Friday 2004-11-05 at 08:10 -0800, Jim Cunning wrote:
However, Windows (NT, at least) _does_ have the precedessor to host, nslookup:
C:\WINNT\system32\nslookup.exe
Ah, yes, I remember having used it. Win Me doesn't, however. I don't know about 98. Unless it is installed extra :-? -- Cheers, Carlos Robinson
Today at 7:14pm, Carlos E. R. wrote:
The Friday 2004-11-05 at 08:10 -0800, Jim Cunning wrote:
However, Windows (NT, at least) _does_ have the precedessor to host, nslookup:
C:\WINNT\system32\nslookup.exe
Ah, yes, I remember having used it. Win Me doesn't, however. I don't know about 98. Unless it is installed extra :-?
I just booted up 98 w/VMware and couldn't find nslookup there, either.
The Friday 2004-11-05 at 17:33 -0800, Jim Cunning wrote:
Ah, yes, I remember having used it. Win Me doesn't, however. I don't know about 98. Unless it is installed extra :-?
I just booted up 98 w/VMware and couldn't find nslookup there, either.
See? That's the problem a newbie installing from ftp has: he has to supply the IP, but if he only has windows, the IP number is difficult to get at. Perhaps the suse web page should list mirrors with their IPs for these people. That is, unless something escapes me: after all, I don't have the bandwidth to install by ftp, I haven't tried (except local installs, of course). -- Cheers, Carlos Robinson
Paul Ryan wrote:
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.
When you use the ping command to a host name, you should see the IP addess returned. Failing that, try using the host or nslookup commands.
participants (11)
-
Anders Johansson
-
Andreas Philipp
-
Carl Hartung
-
Carlos E. R.
-
Dave Howorth
-
David Herman
-
James Knott
-
Jim Cunning
-
Paul Ryan
-
Paul W. Abrahams
-
Ted.Harding@nessie.mcc.ac.uk