OpenSolaris – Manual Network DNS issue

If you have tried to setup a manual IP on your opensolaris box you may find that DNS is not working as you would expect in some cases. nslookup resolves the name to an ip, but pinging doesnt make it to the box…

How to fix;

Edit your /etc/nsswitch.conf file and add the word “dns to the hosts and ipnodes lines
If you make a backup of /etc/nsswitch.conf you can also just copy /etc/nsswitch.dns over it…

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

You may also want to check that auto-magic mode has been disabled when setting up your networking manually;

svcs -a | grep nwam

If it is enabled type;

svcadm disable svc:/network/physical:nwam

3 Replies to “OpenSolaris – Manual Network DNS issue”

  1. Hi. Just want to thank you for this article. I could not get my browser to work on OpenSolaris. I could get to websites using the IP so I knw there was a dns issue somewhere, though the nslookup was working. This led me to believe it was a browser issue, or perhaps an incorrectly specified proxy server setting somewhere. I googled “opensolaris dns problem” and knew as soon as I saw this article that this was my issue. Being a complete OpenSolaris newbie I would NEVER have found the problem otherwise. Thanks a million.

Leave a Reply

Your email address will not be published.