home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / programm / 5678 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.4 KB

  1. Xref: sparky comp.unix.programmer:5678 comp.sources.wanted:5360
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!uwm.edu!spool.mu.edu!umn.edu!csus.edu!beach.csulb.edu!nic.csu.net!nic.csu.net!nntp
  3. Newsgroups: comp.unix.programmer,comp.sources.wanted
  4. Subject: Re: Get hostname from IP address
  5. Message-ID: <1992Dec13.212509.3512@nic.csu.net>
  6. From: oleg@gd.cs.csufresno.edu
  7. Date: 13 Dec 92 21:25:08 PST
  8. Sender: oleg@gd.cs.csufresno.edu
  9. References: <Bz2FFM.D4z@avalon.nwc.navy.mil> <2564@eagle.ukc.ac.uk>
  10. Organization: Computer Science Departement of California State University in Fresno
  11. Nntp-Posting-Host: gd.cs.csufresno.edu
  12. Lines: 18
  13.  
  14. In article <2564@eagle.ukc.ac.uk> smmat@ukc.ac.uk (S.M.M.Al-Taher) writes:
  15. >In article <Bz2FFM.D4z@avalon.nwc.navy.mil> dejesus@archimedes.nwc.navy.mil (Francisco X DeJesus) writes:
  16. >>I'd like to find a utility I can call from the command-line with an
  17. >>internet IP address as an argument, and have it return to me the full
  18. >>hostname related to it. I've looked into the function gethostbyaddr()
  19. >>but haven't been able to work. I also remember reading about a name-
  20. >>resolver funtion nres_gethostbyaddr() (sp?), but can't find any
  21. >>references to it on my system. I'm running SunOS 4.1.2 on a Sparc.
  22. >
  23. >A while back I also wanted to be able to get host names from the IP address,
  24. >and used the gethostbyaddr function. I've put together the following code:
  25. >
  26. What's wrong with dig -x address?
  27.  
  28. Oleg
  29.  
  30.  
  31.  
  32.