1834163 Members
2468 Online
110064 Solutions
New Discussion

Re: Can't Set Domain

 
Jon Tattershall
Occasional Contributor

Can't Set Domain

Hi all -

I'm trying to use NIS as a hostname resolver (client). However, the NIS client won't startup due to this error:

.
.
domainname xxx
setdomainname: Function is not available
.
.

I can see the domain xxx when I type "ypcat -d xxx", I just can't set the dommainname.

Any ideas?

3 REPLIES 3
William E. Sisson, Jr.
Occasional Advisor

Re: Can't Set Domain

Jon,
Sounds like you may have some sort of library problem. Does /usr/lib/libpicc.a exist ? If not then domainname can't find the setdomainname() function.
janders
Advisor

Re: Can't Set Domain

Hi,
These errors are from the /etc/rc.log or syslog?? Also, I assume that ypwhich states that the NIS domain name hasn't been set and also the domainname command doesnt return anything nor does it work from the command line to set the domain name and you have the proper domain name set in /etc/rc.config.d/namesvrs. Also another weird thing to check is that the nfs kernel driver is configured.

Hope that gives you some ideas,
Jason
Jon Tattershall
Occasional Contributor

Re: Can't Set Domain

Yes, libpicc.a is there in /usr/lib, and it contains the setdomainname object. I also verified that /usr/lib was in my path and that the library has correct permissions.