Solaris can go out to internet

I am using Solaris 10 for a Desktop OS , also router has been configured to connect to the net , but error 404 is coming always. :eek:

I add new gateway bout that did not worked , so guessing I need to add DNS but where .:smiley:

DNS - /etc/resolv.conf
cp -p nsswitch.conf nsswitch.dns

Uh.. that should be

cp /etc/nsswitch.dns /etc/nsswitch.conf

Or you might consider DHCP if your network is capable..

resolved

I do not wont to use DHCP because my hostname is unknown

Hostname is only a minor bit of info a DHCP server can provide. More importantly, it can provide your IP, nameservers, domain name, and default router info... My node's all know their names. And I've had hosts with no name because I was too lazy to give them one :smiley:

here is the solution

first create resolv.conf into /etc/inet and then

vi resolv.conf 
domain sun.com
nameserver DNS IP
nameserver DNS IP

after that

cd /etc
chown root:sys ./inet/resolv.conf
ln s ./inet/resolv.conf

after that I added in nsswitch.con on hosts DNS

and final check

cat /etc/default/router 

My mozilla opened google.com

:cool:

Add Default route

touch /etc/defaultrouter
<gateway IP> /etc/defaultrouter

vi /etc/resolve.conf
nameserver <Primary DNS IP>
nameserver <Secondry DNS IP>.

after this restart network service it will work.

You can configure the dhcp client not to set its hostname to "unknown" when no name is supplied by the dhcp server.

how , i am using solaris for only few months

I think if the /etc/nodename file exists, its content is used as hostname. Anyway, to have the dhcp client not to request a hostname, edit the /etc/default/dhcpagent file and remove "12" from the PARAM_REQUEST_LIST variable.