Host name not shown using DHCP


I am using the sample code PINGLED on RCM4200 board.
I changed it to use DHCP. It is getting the IP correctly both on the router the host name is not shown.
I used function sethostname(“rabbithost”);

What else do I have to do?

Thank you