LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   domainname (https://www.linuxquestions.org/questions/linux-newbie-8/domainname-149861/)

pkp2372 02-24-2004 04:06 AM

Domain Name
 
Hi,

I have an installation of RHAS2.1. The DNS has been configured with Domain name "Sagar.com".

Executing Command "dnsdomainname" shows correct domain name i.e "sagar.com" while command "domainname" shows "none". This may be because, the command "domainname" shows nis domain name while the "dnsdomaindname" command shows configured domain name.

Can anyone let me know how to configure nis domain name so that executing "domainname" shows "sagar.com"

With Regards
Pranav

Xris718 02-24-2004 10:40 AM

1. make sure you have nis rpms installed.
2. make sure ypbind, ypserv, (yppasswdd for adding users) is running. Those are nis processes.
ex: you can start them up (as root) with following commands:
a) service ypbind start
b) service ypserv start
etc...
3. Issue command to initialize domainname for nis server. (as root)
a) # domainname <name>
without the '<>'
4. Initialize nis server (as root)
a) # /usr/sbin/ypinit -m
Note: Path maybe different on your system use "locate ypinit" to find executabe file.


Cheers!!!


All times are GMT -5. The time now is 05:29 PM.