Unix Technical Forum

domainname returns exit code 9

This is a discussion on domainname returns exit code 9 within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Hi! On one of my machines, I've got the problem, that domainname returns an exit code of 9: root@dph03:# ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:15 AM
Alexander Skwar
 
Posts: n/a
Default domainname returns exit code 9

Hi!

On one of my machines, I've got the problem, that domainname
returns an exit code of 9:

root@dph03:# /usr/bin/domainname ; echo exit code $?
domainname.com.example
exit code 9

Instead of "domainname.com.example" the domainname as set
in /etc/defaultdomain and with

domainname `cat /etc/defaultdomain`

is returned.

Because this exit code is not == 0, I get the following
error when running ypinit:

root@dph03:# ypinit -c
Can't get local host's domain name. Please check your path.

root@dph03:# uname -a
SunOS dph03 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-60

I found a message on the SunHELP mailing list, saying
that the check for the exitcode in ypinit should be removed,
but that can't be the proper solution, can it?
http://lists.sunhelp.org/pipermail/s...er/014359.html

Same has been suggested at http://groups.google.de/groups?hl=de...L%40bath.ac.uk

I also double checked nsswitch.conf for errors - I compared
it to one on a working Solaris 8 box, and there are no
differences.

Any ideas?

Alexander Skwar
--
If the very old will remember, the very young will listen.
-- Chief Dan George
-------------------------------------------------------------------------

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 08:15 AM
Casper H.S. Dik
 
Posts: n/a
Default Re: domainname returns exit code 9

Alexander Skwar <from@alexander.skwar.name> writes:

>root@dph03:# uname -a
>SunOS dph03 5.8 Generic_108528-09 sun4u sparc SUNW,Ultra-60


>I found a message on the SunHELP mailing list, saying
>that the check for the exitcode in ypinit should be removed,
>but that can't be the proper solution, can it?


It is, actually.

>http://lists.sunhelp.org/pipermail/s...er/014359.html


>Same has been suggested at http://groups.google.de/groups?hl=de...L%40bath.ac.uk


>I also double checked nsswitch.conf for errors - I compared
>it to one on a working Solaris 8 box, and there are no
>differences.


Install a patch:

112138-01: SunOS 5.8:: usr/bin/domainname patch

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 08:15 AM
Darren Dunham
 
Posts: n/a
Default Re: domainname returns exit code 9

In comp.unix.solaris Alexander Skwar <from@alexander.skwar.name> wrote:
> Hi!


> On one of my machines, I've got the problem, that domainname
> returns an exit code of 9:


> root@dph03:# /usr/bin/domainname ; echo exit code $?
> domainname.com.example
> exit code 9


Sounds like an old bug, long ago patched to me.

http://www.sunmanagers.org/pipermail...er/000396.html

--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:11 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com