UnknownHostException again!
<p>I posted one question previously and all of them answered that there is some problem with DNS but i changed my DNS to many addressed and now i have the most reliable, google DNS :-</p>

<pre><code>8.8.8.8
</code></pre>

<p>Still i get the same UnknownHostException. What can be the problem? This is my code :-</p>

<pre><code> DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                DocumentBuilder db = dbf.newDocumentBuilder();
                Document doc = db.parse("http://rss.news.yahoo.com/rss/india");
</code></pre>

<p>Infact if i pass address as something very common like :- <a href="http://google.com" rel="nofollow">http://google.com</a> i still get the same error. Please help me :(. I have my submissions tomorrow.</p>

<p>Thanks in advance :)</p>

<p><strong>EDIT</strong> : If i type the same address in my mozilla, it works great. So, i am sure that there is no DNS problem.</p>

<p><strong>2nd EDIT</strong> :- I found this link <a href="http://www.ehow.com/how_4747553_fix-unknownhostexception-java-applications-ubuntu.html" rel="nofollow">http://www.ehow.com/how_4747553_fix-unknownhostexception-java-applications-ubuntu.html</a></p>

<p>But when i run the command </p>

<pre><code>sudo apt-get install lib32nss-mdns
</code></pre>

<p>i get package not found.</p>

<p>Somebody even mentioned :-</p>

<pre><code>-Djava.net.preferIPv4Stack=true
</code></pre>

<p>But where do i write this statement of Djava?</p>

<p>I am using Netbeans 6.8 to run my web application</p>
