\[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, ”Did you have <a class="zem_slink" title="Network Information Service" rel="wikipedia" href="http://en.wikipedia.org/wiki/Network_Information_Service">NIS enabled?”
That seemed interesting and thus I got the direction to look for where I can find the solution. And finally I found that in ”<a class="zem_slink" title="Nsswitch.conf" rel="wikipedia" href="http://en.wikipedia.org/wiki/Nsswitch.conf">nsswitch.conf” 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 ”files dns” 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">
Related Articles:
- 2010/05/06 Solved – Errors with afraid-dyndns in Goddard (Fedora 13)
- 2010/04/12 Afraid Dynamic DNS client in Fedora with Email indicating the changed to original IP.
- 2010/03/16 OpenDNS and Proxies: Putting it All Together on Ubuntu Karmic
- 2010/07/27 PuTTY alternatives - AlternativeTo.net
- 2010/07/15 Free Solaris Ebook