home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / programm / 4346 < prev    next >
Encoding:
Internet Message Format  |  1992-08-17  |  1.1 KB

  1. Path: sparky!uunet!usc!rpi!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.unix.programmer
  4. Subject: Re: getdomainname() returns 0 and "noname"!
  5. Date: 18 Aug 1992 04:56:18 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 17
  8. Distribution: usa
  9. Message-ID: <16pvtiINNkr5@early-bird.think.com>
  10. References: <1992Aug17.200553.24243@unixland.natick.ma.us>
  11. NNTP-Posting-Host: gandalf.think.com
  12.  
  13. In article <1992Aug17.200553.24243@unixland.natick.ma.us> lobsang@unixland.natick.ma.us (Michael Levin) writes:
  14. >     On a certain Sun workstation, doing a getdomainname() call
  15. >returns 0, and sets the name argument to be "noname". 
  16.  
  17. This probably means that the workstation isn't using NIS.
  18.  
  19. >                               Now, suppose
  20. >this machine is called "X". Doing "finger X.noname" gives a "unknown
  21. >host" error, while "finger X" is ok. 
  22.  
  23. getdomainname() is for getting the NIS domain, not the DNS domain.  There's
  24. no reason to concatenate the hostname and the NIS domain.
  25. -- 
  26. Barry Margolin
  27. System Manager, Thinking Machines Corp.
  28.  
  29. barmar@think.com          {uunet,harvard}!think!barmar
  30.