Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Nameservices after install. 1

Status
Not open for further replies.

deetee2k

Programmer
Nov 25, 2000
90
IE
Here's a doozy,
We have accidentally installed NIS onto a solaris 8 machine during install time. The machine no longer boots (NIS timeouts).

My question is, is it possible to change the name service from NIS to DHCP (or None as in the install) from the boot prompt or do I have to rebuild the machine?

Ta,

D. "I want to play..."
(Guess the X-Files episode!)
 
DHCP is not a name service. NIS is.

To remove NIS you can follow the followin commands:
1. boot -s
2. cd /etc
3. rm defaultdomain
4. cp nsswitch.files nsswitch.conf
5. reboot

This takes off the NIS.

Another way to change the settings on a machine is with:
1. boot -s
2. sys-unconfig
3. answer y
4. and then boot
This will erase all your settings Hostname, IP nameservice and root password, time. After which you will be able to reneter it.

Good Luck
Micha Micha Grunberg
Unix Sys-Admin
 
Thanks, but no success.

Your first suggestion will not work since the boot process will halt with a "WARNING: Timed out waiting for NIS to come up" and will refuse to go any further.

Your second suggestion will not work since the command interpreter doesn't understand the 'sys-unconfig' command and returns me to the '?' prompt.

Any other ideas?
Thanks a million,

D. "I want to play..."
(Guess the X-Files episode!)
 
Did yoou try either solution. The s in the boot -s brings the computer to single user. It does this before it run the script that looks for the NIS server.

Regarding the second suggestion. After you have booted as single user it recognizes the command.

I have done it a lot of times, it works.

Micha
Micha Grunberg
Unix Sys-Admin
 
Have you tried running sys-unconfig from:

/usr/sbin/sys-unconfig

? Good luck.
 
A little mistake, I should have gone into maintenance mode! This must be my 'feeling thick' day.

Thanks! D. "I want to play..."
(Guess the X-Files episode!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top