[3364] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: utsname.h

daemon@ATHENA.MIT.EDU (really kuznet@ms2.inr.ac.ru)
Thu Jun 20 14:34:07 1996

From: inr-linux-net@ms2.inr.ac.ru (really kuznet@ms2.inr.ac.ru)
To: linux-net@vger.rutgers.edu
Date: 	20 Jun 1996 19:59:24 +0400

Leonardo Valcamonici (leo@caprera.CAspur.IT) wrote:

: on a DEC Unix box you can use getdomainname  library call to get the 
: domainname (not NIS) extracted from the FQDN stored in utsname.nodename, 
: and this seems to work on Suns and AIX machines as well.

No, Sun's getdomainname returns NIS domain name.

You are allowed to put FQDN into utsname.nodename part
(note that Solaris has no utsname.domainname part at all,
it stores NIS domain name in another place)

: 1) deleting domainname from the utsname kernel structure and setting 
: utsname.nodename to the FQDN similar to what other Unix implementations 
: do and fixing getdomainname accordingly to it;

OK, only do not forget to invent another place for storing
NIS domain name in kernel.

: 2) separating domainname and domainname-yp functions.

Well, you will comply with Digital/IBM but not with Sun.
I choose Sun. 8)

Alexey Kuznetsov.


home help back first fref pref prev next nref lref last post