Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
II cant connect to the Internet, I can ping my network card and router but cannot ping www.google.com or browse. I am wondering if this is a default route or DNS problem.
When solaris boots I see the network card as yukonx. I am using a router to connect to the IInternet with static addressing, my router gateway is 192.168.254.254
My ethernet card is 192.168.254.197 255.255.255.0
Under linux I set resolv.conf to point at the router
i.e. nameserver 192.168.254.254
and the router has my ISP's DNS settings.
I have a single computer under solaris called "orac" and here is contnts of:
/etc/hosts
# Internet host table
#
127.0.0.1 localhost loghost orac
192.168.254.197 yukon
As you can see things are in a bit of a pickle, I am reading the Idiots guide to Solaris 9, I wonder if setup has changed between Solaris 9 and 10? Thanks in advance for any advice
or online references.
If I type ping 192.168.254.197 I get the message "..is alive", the same with my router (192.168.254.254)
What happen when you try to ping the DNS of your provider and when you try to ping an IP address on internet?
Try to ping as well the gateway of you ISP.
just an idea like that can you do a "traceroute" on google domain name and on the IP address of google it will tell you where it stop.
Thanks guys, all of you.
It appeared that I could not browse or ping a domain name, but yet I could ping an external IP e.g. 216.239.59.104 (and If I copied that IP onto my browser location the page would appear).
jlliagre was right, the contents of nsswitch.conf were wrong. I simply appended dns to the following line in
/etc/nsswitch.conf
hosts: files dns
saved the file and rebooted, I'm posting from Solaris 10 now, many thanks.
I don't have Solaris in front of me right now but do have OpenSolaris 2009.06 (111a) in front of me. After making the change from DHCP to Static IP, "cp /etc/nsswitch.dns /etc/nsswitch.conf" (of course after saving the original, right?).
BTW this thread hasn't seen activity in 3 years...
Also, just an added note. I had this same problem and my nsswitch.conf and nsswitch.dns were fine. It turned out that my resolv.conf was blank, so I added by ISP and DNS nameservers to it and everything worked like a charm.
I've also discovered this "anomaly" with Solaris 10 update 6 (i386).
I did check, and recheck , and recheck again, the nsswitch.conf and resolv.conf files with other servers I have.
I had discovered the service "dns/client" was "disabled" since I didn't setup DNS during installation. But even though I enabled "dns/client" I may have not done it in the correct order compared to my troubleshooting the two config files.
After getting completely frustrated I pulled a windoze trick and rebooted. I KNOW, completely unnecessary, but it did correct the problem.
So I suspect I should have tried to restart or refresh the dns/client service before doing the reboot. A "sysunconfig" is also WAY too drastic a measure.
That's all I did. I think it's some sort of small bug in Solaris 10 that's been over looked. These config files should be called on when needed, not when the service is started (historically speaking).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.