![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change HostName | nalina | UNIX for Dummies Questions & Answers | 9 | 03-25-2008 03:41 AM |
| Solaris - unknown hostname - how can I change hostname? | XNOR | UNIX for Dummies Questions & Answers | 1 | 03-29-2007 07:52 PM |
| change hostname | fishman2001 | UNIX for Dummies Questions & Answers | 2 | 01-12-2006 06:39 AM |
| Change IP and Hostname | catwomen | HP-UX | 3 | 12-12-2005 07:14 PM |
| Change of Hostname | gelbvonn | UNIX for Advanced & Expert Users | 4 | 09-20-2004 07:12 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#8
|
|||
|
|||
|
This is for a small network I've got at home, so I am the network administrator.
This is all because, I can't seem to forward ports to static IP addresses with my Linksys router. |
| Forum Sponsor | ||
|
|
|
#9
|
||||
|
||||
|
From Sunsolve:
Solaris systems try to set their hostname through the "dhcpinfo" command when they are booted as DHCP clients. The "dhcpinfo" command tries to obtain the hostname for the client from a DHCP server by matching the client's MAC address with a hostname entry in the DHCP server's network client table. A Windows NT DHCP server usually does not have a network client table since the hostname of a Windows client is stored locally. Hence, a Solaris DHCP client will get no reply from the Windows NT DHCP server to it's "dhcpinfo" command. If the Solaris client is configured to use DHCP and the DHCP server fails to respond to the "dhcpinfo" command, the client's hostname is set to "unknown" by the startup scripts. We may work around this problem by making some modifications in the system startup scripts as shown below: 1. For Solaris 2.6 and Solaris 7 Systems. Edit the file /etc/init.d/rootusr and change the line that reads hostname=`/sbin/dhcpinfo Hostname` to # hostname=`/sbin/dhcpinfo Hostname` hostname=`shcat /etc/nodename` uname -S $hostname Save the file and reboot the system. The system's hostname will be the entry in the file /etc/nodename. 2. For Solaris 8 systems. Edit the file /etc/init.d/network and change the line that reads "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;; to # "dhcp") hostname=`/sbin/dhcpinfo Hostname` ;; "dhcp") hostname=`shcat /etc/nodename` ;; Then, edit the file /etc/init.d/inetsvc and change the line that reads hostname=`/sbin/dhcpinfo Hostname` to # hostname=`/sbin/dhcpinfo Hostname` hostname=`/usr/bin/cat /etc/nodename` Save the files and reboot the system. The system's hostname will be the entry in the file /etc/nodename. |
|
#10
|
|||
|
|||
|
Thanks RTM,
That worked. |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|