Click to See Complete Forum and Search --> : Isn't there some way to get an IP from a domain-name? (when unable to look-up)


MBMarduk
08-17-2001, 10:56 AM
I'm going bonkers over this: I'm trying to 'wget' Linux from a server and *BY CHANCE* I had an IP for an FTP site.
First it was kinda slow, and now I can't access it from 9AM to 5PM !! :mad:
<EDIT>
Let me clarify: it's on a 4-year-old laptop. I get DHCP working fine and am able to ping stuff, but it seems I'm not able to "resolve domain-names" (the /etc/resolv.conf is exactly the same as on my working box)

I wan't to use IPs from other FTP sites for d/l-ing.
</EDIT>

How I got the IP?
By clicking 'reload' 20 times in Netscape and quickly writing pieces of the IP when it flashed across the bottom of the browser window.

Isn't there an easier way to do a reverse lookup? (is that what it's called?)

<pouts>Mommy! I wan't my IPs!</pouts>
TIA,
-Mike

[ 17 August 2001: Message edited by: MBMarduk ]

[ 17 August 2001: Message edited by: MBMarduk ]

yard21
08-17-2001, 12:11 PM
Just type

"host domain-name

for example, "host <A HREF="http://www.google.com"" TARGET=_blank>www.google.com"</A> returns
www.google.com (http://www.google.com) has address 216.239.39.100 www.google.com (http://www.google.com) mail is handled (pri=20) by smtp2.google.com www.google.com (http://www.google.com) mail is handled (pri=40) by smtp3.google.com www.google.com (http://www.google.com) mail is handled (pri=10) by smtp1.google.com

MBMarduk
08-17-2001, 01:25 PM
Oh NOO not again... :(
You using Debian by any chance?

Strike once told me about that util 'host'.
I can't find it anywhere on my Slackware system/CDs/FTP/whatever.
Got a URL for me instead, PLeeeze!?

bjz
08-17-2001, 01:40 PM
If you can't find the host command, try dig or nslookup. Both do the same thing, take a domain name and show the ip address associated with it.

siflis
08-17-2001, 02:37 PM
A lot of the time I can ping a website like google.com and it will give me something like: PING google.com (216.239.39.100) from xxx.xxx.xxx.xxx : 56(84) bytes of data. Thats how I usually got ips for stuff.

MBMarduk
08-17-2001, 02:42 PM
Originally posted by siflis:
<STRONG>A lot of the time I can ping a website like google.com and it will give me something like: PING google.com (216.239.39.100) from xxx.xxx.xxx.xxx : 56(84) bytes of data. Thats how I usually got ips for stuff.</STRONG>

:o
How stupid of me; in all my anger and hastiness I totally forgot that method!
Although IIRC it isn't a bulletproof way.
THX!