On Tue, 2001-10-16 at 18:44, Paul Jakma wrote:
> it's NISDOMAIN.
>Yup, it was him.
The problem lies in the way that the domainname is never actually set.
Instead ypserv picks up the environment var that is created in the
/etc/init.d/ypserv script by sourceing /etc/sysconfig/network. The var
is obviously only available inside the shell "session", so logging in
and running "nisdomainname" from the console will yield a "(none)"
response. Also running make in /var/yp will result in a subdir called
So in short I had actully put in the correct setting into
/etc/sysconfig/network, however there was now way to tell from the
console that the domain name was setup correctly.
I added the following to the start function in the /etc/init.d/ypserv
# Set the NIS domain name
if [ -n "$NISDOMAIN" ]; then
action "Setting NIS domain name $NISDOMAIN: " domainname $NISDOMAIN
Glen Gray Software Engineer
a n t e f a c t o t: +353 1 8586006
www.antefacto.com f: +353 1 8586014
181 Parnell Street - Dublin 1 - Ireland
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!