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