home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / shell / 3112 < prev    next >
Encoding:
Text File  |  1992-07-23  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!usc!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!hirchert
  3. From: hirchert@ncsa.uiuc.edu (Kurt Hirchert)
  4. Subject: Re: Help in find address
  5. References: <911288c.14.711834149@ace.acadiau.ca>
  6. Message-ID: <1992Jul24.010757.21100@ncsa.uiuc.edu>
  7. Originator: hirchert@pluto.ncsa.uiuc.edu
  8. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  9. Organization: Nat'l Ctr for Supercomp App (NCSA) @ University of Illinois
  10. Date: Fri, 24 Jul 1992 01:07:57 GMT
  11. Lines: 24
  12.  
  13. In article <911288c.14.711834149@ace.acadiau.ca> 911288c@ace.acadiau.ca (HON (EDWIN) KIN CHUNG) writes:
  14. >Dear friends,
  15. >        Would anybody help me to find out how to find out the 
  16. >    numerical address of the site
  17. >        Like @dragon.acadiau.ca
  18. >        is   179.11.12.1
  19. >    Any program to do this ,Help me Please !!
  20. >                            EDwin
  21.  
  22. It depends on how your machines networking is set up.  Here are some
  23. possibilities:
  24.  
  25. nslookup dragon.acadiau.ca        # ask DNS
  26. /etc/nslookup dragon.acadiau.ca        # ditto - nslookup not in path
  27. /usr/etc/nslookup dragon.acadiau.ca    # ditto - another place to look
  28. fgrep dragon.acadiau.ca /etc/hosts    # the old-fashioned way
  29. ypcat hosts | fgrep dragon.acadiau.ca    # ditto - shared under NIS
  30. ypmatch dragon.acadiau.ca hosts        # ditto - more efficient NIS query
  31.  
  32. With luck, one of these will work for you.
  33.  
  34. -- 
  35. Kurt W. Hirchert     hirchert@ncsa.uiuc.edu
  36. National Center for Supercomputing Applications
  37.