\[Solution\] Solaris issue with wget not resolving Domain name (DNS name lookup failure)

2010-08-09 301 words 2 mins read

Today I was working with <a class="zem_slink" title="Solaris (operating system)" rel="homepage" href="http://oracle.com/solaris">Solaris and after I had set up the <a class="zem_slink" title="NIS+" rel="wikipedia" href="http://en.wikipedia.org/wiki/NIS%2B">NIS+, <a class="zem_slink" title="Name server" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_server">DNS server, IP Address and completing the basic setting. I was using the pkg-get util from the freesunware.com

The utility was using wget and it was failing constantly. From the looks of it, it was very clear that the wget utility was unable to find the <a class="zem_slink" title="IP address" rel="wikipedia" href="http://en.wikipedia.org/wiki/IP_address">IP address from the name. <a class="zem_slink" title="Name resolution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Name_resolution">Name resolution was not happening, while dig and <a class="zem_slink" title="Nslookup" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nslookup">nslookup was able to do the DNS lookup.

After searching for quite sometime all that I could see was, in one of the forums, &#8221;Did you have <a class="zem_slink" title="Network Information Service" rel="wikipedia" href="http://en.wikipedia.org/wiki/Network_Information_Service">NIS enabled?&#8221;

That seemed interesting and thus I got the direction to look for where I can find the solution. And finally I found that in &#8221;<a class="zem_slink" title="Nsswitch.conf" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nsswitch.conf">nsswitch.conf&#8221; there were settings to find how the various lookups should happen.

For the host entry, I saw that after looking at the nis the lookup would end so I changed the sequence to look at &#8221;files dns&#8221; also and then quit. And it worked. Hope it helps you too 🙂<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://www.edugeek.net/forums/mac/59805-dns-set-up-integration.html">DNS Set Up for Integration (edugeek.net) <li class="zemanta-article-ul-li"><a href="http://eon.businesswire.com/news/eon/20100719005244/en">Black Lotus Selects Afilias to Improve DNS Reliability (eon.businesswire.com) <li class="zemanta-article-ul-li"><a href="http://www.ghacks.net/2010/06/02/symantec-enters-dns-provider-market-with-norton-dns/">Symantec Enters DNS Provider Market With Norton DNS (ghacks.net) <li class="zemanta-article-ul-li"><a href="http://beginlinux.com/blog/2010/07/apache-performance-tuning/">Performance Tuning The Apache Web Server (beginlinux.com) <li class="zemanta-article-ul-li"><a href="http://maketecheasier.com/using-google-public-dns-to-speed-up-your-internet-connection/2010/07/05">Using Google Public DNS to Speed Up Your Internet Connection (maketecheasier.com) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://blog.amit-agarwal.co.in/wp-content/uploads/2010/08/zemified_e9.png" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">


Authored By Amit Agarwal

Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.

We notice you're using an adblocker. If you like our webite please keep us running by whitelisting this site in your ad blocker. We’re serving quality, related ads only. Thank you!

I've whitelisted your website.

Not now
This website uses cookies to ensure you get the best experience on our website. Learn more Got it