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: - 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.
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.....
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?