[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
| Title: | DIGITAL UNIX (FORMERLY KNOWN AS DEC OSF/1) | 
| Notice: | Welcome to the Digital UNIX Conference | 
| Moderator: | SMURF::DENHAM | 
|  | 
| Created: | Thu Mar 16 1995 | 
| Last Modified: | Fri Jun 06 1997 | 
| Last Successful Update: | Fri Jun 06 1997 | 
| Number of topics: | 10068 | 
| Total number of notes: | 35879 | 
9679.0. "gethostname(2) and fully qualified domain names" by DECC::SEIGEL () Wed Apr 30 1997 11:25
On Digital Unix 4.0A and later, if the gethostname(2) system call succeeds, is
it guaranteed to always return a fully qualified domain name ?
We are porting a solaris application, which contains special code because
gethostname(2) on solaris does not always return  a fully qualified domain
name.  We are wondering if we need this special code in our Digital Unix
version of the application.
Thanks, Harold
| T.R | Title | User | Personal Name
 | Date | Lines | 
|---|
| 9679.1 |  | SMURF::DANIELE |  | Wed Apr 30 1997 12:43 | 9 | 
|  | I don't think you can be guaranteed of getting back
a fqdn.  Normal configuration procedures will usually
result in one being stored there.  But I don't believe
there's anything to prevent an authorized user from
ussing a command like
#hostname fred
Mike
 |