How to stop DHCP from changing hostname

Hi,
greetings. I have installed OS 10 on sunfire 240. FOr now let dhcp to give IP address but it keeps chaning hostname. How do I stop this?

thanks
Jaya

To call your machine "myHostname"

echo myHostname > /etc/nodename

I think beside changing in /etc/nodename You also need to make entry of hostname in /etc/hostname.interfacename
where interface name stands for your primary interface name like hme0 or ce0
or the interface for which dhcp is assigning the hostname.

thanks
prasad

No, you don't.