Solaris 10 Dsl Cable Dhcp
Hi all,
Solaris 10 x86 cannot get a Dhcp address when I give it a hostname while installing it. (I name it server05), therefore internet doesnt work.
On the other hand when I dont assign a hostname, it gets the name Unknown as a hostname and get an ip address from the Dhcp router and then the internet works fine.
Can you anyone tell how to assign the name server05 and gets an ip from Dhcprouter automatically?
I tried sys-unconfig but when it comes to Network , I chose yes then I dont get the hostname probe instead I get NIS+, NIS, LDAP...etc after reboot the hostname is "Unknown" and internet works fine.
When I say no to Network prompt then I get the hostname prompt I can enter server05 but after reboot internet wont work.
I just want to be able to name the hostname server05 and gets internet from Dhcp automatically.
Can you help, thanks.
[900 byte] By [
f22] at [2007-11-26 9:30:47]

# 1
Add following file to your machine -- /etc/nodename
Edit this file and simply add - server05
MAKE ABSOLUTELY SURE TO HIT THE ENTER KEY AFTER TYPING NEW HOSTNAME OR CHANGE WILL NOT TAKE EFFECT !!!!
Save ( Required ) and Reboot....
Your new hostname should be presented upon booting and you should still maintain your DHCP connection.
I have used this method countless times and it does work.
Good luck ...... John.
# 2
Hello.
I know that problem.
On my computer some programs - eg X11 !! - tried to connect to hostname instead of localhost. Example:
DISPLAY=:0.0
did not result in a connection to localhost:0.0 but into a connection to hostname:0.0.
Unfortunately this does NOT work when using DHCP.
I did the following in /etc/hosts:
127.0.0.1 localhost myhost
So "myhost" (host name in /etc/notename) is now identical to localhost and not to a real IP address.
Martin
# 3
Martin -
The aforementioned procedure has worked for me WITH a DHCP connection when installing the O/S several times in the past.
I perform the initial install and choose DHCP for my network connection.
The final reboot of the fully installed O/S will yield the hostname
" unknown " as we well know. I then add the /etc/nodename file and edit it for my chosen hostname as described above. When the system is rebooted - voilathere is the newly chosen hostname and a working connection to the internet via DHCP connection. Yes - I do have a DHCP connection. I utilize a Linksys Cable modem and a Belkin
Router. Nonetheless - I wish the original poster the best of luck and hope that one of the posted " remedies " will work in his particular situation. Regards, John.