Here is my summary of my problem of finding numerical internet
address of sites when only provided with Internet address names.
I needed the numerical value because if I ftp using the Internet
address name, it must be defined in my /etc/hosts file. Otherwise,
I must use its numerical equivalent to ftp.
[ 1 ]
Use 'whois' which comes with your Sun. 'whois' would sign onto
sri-nic.arpa (or nic.sri.com) to get the info. Therefore, you must
have this entry in your /etc/hosts file. Here it is:
26.0.0.73 nic.sri.com sri-nic.arpa nic
[ 2 ]
Sign onto sri-nic.arpa and do the search yourself.
sri-nic.arpa is some sort of a nameserver so you there is no
login prompt or password needed. Just telnet into it and it'll
have a help screen with instructions for you.
[ 3 ]
Use 'nslookup' with a DNS (Domain NameServer). If you know of a
DNS that you have access to, then you can set up 'nslookup' to
access information from there. To set it up, you just need the
file /etc/resolv.conf (Note: the man page of 'nslookup' is wrong.
There is a typo. The file you need is 'resolv.conf', NOT
'resolve.conf'. Thanks to stefan@centaur.astro.utoronto.ca for
telling me to try both names). Look at the man page of 'nslookup'
for more information on this command. Look at the man page for
'resolve.conf' to see how 'resolv.conf' is setted up. For single
host machine, you only need two lines in this file:
domain <local domain name>
nameserver <numerical Internet Address of nameserver you'll be using>
You may add more domain definitions and/or more nameservers
if you wish. There is also a definition for preferred networks
under the declaration of 'address'. More info in man page.
I know 'nslookup' came with Sun OS 4.x.x but I'm not sure how
you can get access to one otherwise.
Bascially, that's it. You will then be able to find info on other
sites. Does anyone know of a good nameserver that knows a good
number of sites?
Thomas.
-- /*-----------------------------------------------------------------*/ /* Thomas Y. K. Wong INTERNET: thomas_wong@civil.ubc.ca **/ /* Graphics Lab twong@civil.ubc.ca * */ /* Civil Engineering BITNET: thomas_wong%civil.ubc.ca@ubcmtsg * */ /* University of B.C. twong%civil.ubc.ca@ubcmtsg * */ /* Vancouver, B.C. UUCP: ...!van-bc!civil.ubc.ca!thomas_wong * */ /* Canada ...!van-bc!civil.ubc.ca!twong * */ /*-----------------------------------------------------------------* */ /* _________ How can you tell I'm a C programmer? * */ /* :--] '|homas [--: (8 <grin> 8) <= note the glasses. **/ /*-----------------------------------------------------------------*/
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:05:56 CDT