forums.huyett.us

something different
It is currently Thu Jun 22, 2017 3:40 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: DHCP, Solaris and Hostnames
PostPosted: Tue Oct 05, 2004 7:49 am 
Offline
Admin
Admin
User avatar

Joined: Mon Jan 20, 2003 5:37 pm
Posts: 58
If you're running a Solaris workstation on the DHCPnetwork, you'll have some issues with getting a hostname/machine name.

DHCP won't provide this by default, and you get the "unknown" hostname. Here's a quick and dirty fix:
Create a file with the following in it andname it /etc/rc.2.d/S70dhcp_hostname with 755 perms.
#!/sbin/sh
#
# RC script to set the hostname since DHCP doesn't provide one.
#
MACHINE_NAME=`cat /etc/nodename`
echo "Setting hostname to $MACHINE_NAME... c"
uname -S $MACHINE_NAME
echo "Done."

Then put the name you want your machine to be into /etc/nodename.
(as root) echo "foofoobunny" > /etc/nodename

Once you reboot, all should be well!
- Erek Adams


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group