Discussion Locked

Config problem - can't reach Internet

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Probably easy but my brain doesn't see the problem.... Just installed Sol 2.6 and can't surf Internet. Added the system to DNS server (W2K). However I can ping IP's and a nslookup to, for example, www.pepsi.com does return the IP. But "ping www.pepsi.com" fails with unknown host error. Our older Suns are working, and I have the same /etc/hosts, resolv.conf, defaultrouter files. Did I miss a file to modify? Thanks in advance if you can offer suggestions.

Regards,
David

9 replies

by curacao_dejavu

I am a NT guy but I will give it a shot (from the center )
A DNS is not working, it is not translating the domainnames to ip and therefor you are not able to connect.

Leopold

by cpfeiffe

DNS is working properly if you can do nslookup www.pepsi.com. If you can ping the IP address you have connectivity through the firewall and all the routes are correct. If you can't ping www.pepsi.com perhaps DNS resolution is just too slow for youto get the IP back in time to finish the ping before it times out. Try traceroute www.pepsi.com. This should show you exactly where it fails. It should return names as will as IPs where the IPs are in reverse lookup. The goot thing about traceroute is it will also show you the time delays between each hop (router). You may need to use ndd to force your Solaris server to 100 Full Duplex or something. You should have someone in networking verify what the port on the switch/router you are connected to is set at first so you don't force to something that won't be accepted by the router and cause nothing to work for you.

Good luck.

by cavedweller

You need to select an appropriate /etc/nsswitch.conf file (choose name services and usage order). There are several examples files in /etc, look for them with "ls /etc/nsswitch.*". Start with the most appropriate for your installation and edit individual lines using the comments as a guide. You have to reboot for the new selection to take effect.

by ghislain.levesque

Hi,
Verify these files:
- /etc/hosts
- /etc/resolv.conf
- /etc/defaultrouter
- /etc/defaultdomain
- /etc/nsswitch.conf

Try to ping your gateway hostname not ip address.

by scifiman

That was it, thanks! I added /etc/defaultdomain and it worked. I'll have to review my files closely though because the 3 other Suns work and didn't have that file either.

Regards,
David

This discussion is closed to new replies.