[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: no subject



"Ivan J. Varzinczak" <ivan@inf.ufpr.br> wrote:
>	I'd like to know if someone can give me any sugestions about
>how I can discover the domain name given an IP address. For example,
>if I have the IP address 205.188.146.23, I would like to discover what 
>the domain name is, in that case, aol.com.

Well, you can get the hostname and strip off leading components:

[cjw44@riva ~]$ host 205.188.146.23
Name: www2.aol.com
Address: 205.188.146.23

>	I've tried to use nslookup, but I've had some problems in
>setting the servers, because perhaps I'll need the "root" servers on
>internet and it doesn't work very well.

No, don't use the root servers unless you're running a nameserver; use
the one that your ISP gave you instead. You'll need to put something
like:

  nameserver 111.222.33.44

... in /etc/resolv.conf, where 111.222.33.44 is the IP of your ISP's
nameserver.

-- 
Colin Watson                                     [cjw44@flatline.org.uk]



Reply to: