home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!rpi!think.com!barmar
- From: barmar@think.com (Barry Margolin)
- Newsgroups: comp.unix.programmer
- Subject: Re: getdomainname() returns 0 and "noname"!
- Date: 18 Aug 1992 04:56:18 GMT
- Organization: Thinking Machines Corporation, Cambridge MA, USA
- Lines: 17
- Distribution: usa
- Message-ID: <16pvtiINNkr5@early-bird.think.com>
- References: <1992Aug17.200553.24243@unixland.natick.ma.us>
- NNTP-Posting-Host: gandalf.think.com
-
- In article <1992Aug17.200553.24243@unixland.natick.ma.us> lobsang@unixland.natick.ma.us (Michael Levin) writes:
- > On a certain Sun workstation, doing a getdomainname() call
- >returns 0, and sets the name argument to be "noname".
-
- This probably means that the workstation isn't using NIS.
-
- > Now, suppose
- >this machine is called "X". Doing "finger X.noname" gives a "unknown
- >host" error, while "finger X" is ok.
-
- getdomainname() is for getting the NIS domain, not the DNS domain. There's
- no reason to concatenate the hostname and the NIS domain.
- --
- Barry Margolin
- System Manager, Thinking Machines Corp.
-
- barmar@think.com {uunet,harvard}!think!barmar
-