Another person that needs Internet help

Ok i have a router, which my sparc 5 is connected to. I can acess the router webpage (192.168.0.1). But I cant access the internet.

When i use sys-unconfig i enter my ip address fine then i click none for when it asks me for DNS info because I dont have a domain. I was told i can manually change the inside Solaris, I was wondering how i would do that. Or if there is anyother way to make my internet work.

gateway:
####
cat /etc/defaultrouter
192.168.0.1
####
nameserver:
####
cat /etc/resolv.conf
nameserver 192.168.0.xxx
cat /etc/nsswitch.conf
.....
...
hosts: files dns
..
.
#####
reboot (eariest way)--> should work

greetings PRESSY

Ok u kind of lost me, where do I type all this stuff?

gateway: - to fix your gateway (add your gateway), edit /etc/defaultrouter and set it to 192.168.0.1 so when you do the 'cat /etc/defaultrouter' command shown, it has only 192.168.0.1 in it.
#### <----these are line breaks between the information posted
cat /etc/defaultrouter
192.168.0.1

nameserver: to fix dns, put "nameserver 192.168.0.xxx" in /etc/resolf.conf - note that xxx should be the dns server. If you don't have a dns server running on 192.168.0.xxx, then maybe the dns servers at your ISP will work. You would have to get their IP addresses and put them in instead of using 192.168.0.xxx.
####
cat /etc/resolv.conf
nameserver 192.168.0.xxx

You should edit nsswitch.conf so that it uses both files and dns when attempting to look up host IP addresses - do this AFTER you get dns working (your /etc/resolv.conf)

cat /etc/nsswitch.conf
.....
...
hosts: files dns
..
.
#####
reboot (eariest way)--> should work. <---Then simply reboot the server and it all should work.

I dont have the file: /etc/defaultrouter
or the file: resolf.conf

I do however have the nssswitch.conf file.

So I created both files, when i enter the command: cat /etc/defaultrouter it says

192.168.0.1#

and

nameserver 192.168.0.1#

(I have 2 other ip addresses i can try but first iwant to make sure im doing this right),

Thanks for all your help

Get rid of the # on the end of those lines and you should be fine.

How do I do that?

use vi, if you dont know hot to use vi, google vi

vi worked it got rid of the # signs.

for the nameserver 192.168.0.1 didnt work, so my isp gave me a primary and secondary DNS numbers. How should I write the primary and secondary?

Welli tried them all anyways and it still doesnt work:(

just write it into your /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
don't forget your /etc/nsswitch.conf to enable dns resolving.....

gP

Ok something happened i rebooted then it froze so i rebooted again, then it asked me if i wanted to enale ipv6 i said yes, then it asked for all my DNS info again, I entered it and now my internet works! Although my hostname is now Unknown. I'm afraid to hit sys-unconfig thinking my internet is going to get messed but is there a way i can change my hostname?