Forgot To Add Name Service When Setting Up Preinstalled Solaris 10
I just got a Sun Ultra 40 M2 Workstation.
I'm using the workstation to run a Java SE application that has clients connect to a serversocket using my static IP address.
I have the system currently set up and running on my windows xp pc.
So I have all the info from my ISP and I hooked up my int to the eth conn on my sun workstation.
Then I cut on the WS and it took me through the set up.
I said no to the DCHP and entered my static IP address and my submask address and it correctly found my broadcast IP upon rebooting.
But I said NONE to name service when I should have said DNS and entered the 2 addresses I have from my ISP.
Now when I get my Java Desktop the little monitor icons show up in the lower right hand corner and when i click on it it say IDLE but has my correct IP Broadcast and sub mask.
But my browser will not pull up web sites.
I need to add the name service DNS and enter my 2 addresses.
I also have the media disks.
Do I have to reinstall or can I just add the name service somehow?
I tried clicking F2 when restarting the system but do not know enough about it to get back to the set up.
So can anyone help me.
I think I will just reinstall in time if i can't get help but since the solaris 10 was preinstalled I think there is probably a way to go through the set up again but can not figure out how.
[1418 byte] By [
SCOOBYJSPa] at [2007-11-27 9:03:15]

# 1
i found some info after googling and came up with this.
i did not have a /etc/resolv.conf file on my system.
i did have a /etc/hosts file and it had:
127.0.0.0 localhost
111.222.333.444 myhostname loghost
where 111.222.333.444 was my static IP and myhostname was the host name i entered when setting up solaris 10..
so i create a file /etc/resolv.conf and in it put:
domain myhostname
nameserver 192.168.20.53
nameserver 192.168.80.155
and make the 2 addresses the two addresses my ISP gave me to use for DNS.
then restart the system.
does this sound like it will work?
or is there more to it then that?
# 3
ok this post did not work so i am back to the one above.
seems i am entering the domain myhostname line but myhostname is what i typed in during set up for host name.
the other examples seem to be using a myhostname.com type domain name not sure if i just use the host name there or what.
can i just leave the domain line out of the /etc/resolv.conf file all together?
Message was edited by:
SCOOBYJSP
# 4
i added /etc/defaultrouter file with nothing but the default gateway ip in it
and just took the domain myhostname line out of the resolv.conf file leaving
nameserver 111.222.333.444
nameserver 222.333.444.555
also saved the nsswitch.dns to the nsswitch.conf file.
when i restarted it acted better and i was able to ping the gateway address which i could not before.
but still can not ping the static ip.
when i click on the icon it has the right ip and subnet mask listed.
any ideas?
i am running out of google lol.
no one at comcast has ever heard of Solaris and when i call support at Sun they just said we'll call back and sent an email saying it will be $700 to say hello after i just gave them 7k lol so screw that.
geuss i'll just relax and keep googling.
thx for the responses.
# 6
i'm on my new MEGA SYSTEM lmao!
i fully understand the solaris int hookup now.
my problem was not using the dhcp to set up my int when setting up the preinstalled solaris 10.
then once i had created the interface saying no to dhcp it would not let me ifconfig nge0 auto-dhcp
so i just unplumbed the nge0 and then plumbed up the nge1 and ifconfig nge1 111.222.333.444 netmask + 255.255.255.252
and then ifconfig nge1 auto-dhcp
that was it.
i realize the nge0 interface will be back when i restart but i'm on the internet and all works great so i will call it a night and figure out how to permanently fix this up tomorrow.