home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4340 < prev    next >
Encoding:
Text File  |  1992-08-17  |  932 b   |  24 lines

  1. Newsgroups: comp.unix.programmer
  2. Path: sparky!uunet!cs.utexas.edu!usc!rpi!think.com!unixland!lobsang
  3. From: lobsang@unixland.natick.ma.us (Michael Levin)
  4. Subject: getdomainname() returns 0 and "noname"!
  5. Message-ID: <1992Aug17.200553.24243@unixland.natick.ma.us>
  6. Organization: Unixland Public Access Unix & Think_Tank BBS
  7. Distribution: usa
  8. Date: Mon, 17 Aug 1992 20:05:53 GMT
  9. Lines: 13
  10.  
  11.  
  12.      On a certain Sun workstation, doing a getdomainname() call
  13. returns 0, and sets the name argument to be "noname". Now, suppose
  14. this machine is called "X". Doing "finger X.noname" gives a "unknown
  15. host" error, while "finger X" is ok. So, what is the proper way to use
  16. getdomainname() to obtain the proper full host name? Since the return
  17. status is 0 (and not -1), should I simply test the result for the
  18. string "noname" and not use it if it matches? Or is something set up
  19. incorrectly on this workstation?
  20.  
  21. Mike Levin
  22. -- 
  23. Maine Network Backup
  24.