<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/challenges-projects/design-challenges/f/forum/201/raspberry-pi2---internet-not-connecting-through-hostname-but-connecting-through-ip</link><description>Hi Thanks in Advance Am using Rapsberry Pi2 with Raspbian Debian Wheezy OS, configured the network as static with my LAN Connection and accessing pi2 by Putty. I tried to ping google.com, am getting the following response pi@raspberrypi ~ $ ping google</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><lastBuildDate>Tue, 04 Aug 2015 07:23:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://community.element14.com/challenges-projects/design-challenges/f/forum/201/raspberry-pi2---internet-not-connecting-through-hostname-but-connecting-through-ip" /><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/164417?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 07:23:31 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:93d94370-1b9b-40d4-8f18-96851ed98a99</guid><dc:creator>clem57</dc:creator><description>&lt;p style="margin:0;"&gt;Great please mark correct answer for others to know.&lt;/p&gt;&lt;p style="margin:0;"&gt;C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/164416?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 07:03:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:df72c4e7-aaa8-4ece-acc7-47d54595bc2b</guid><dc:creator>Former Member</dc:creator><description>&lt;p style="margin:0;"&gt;thanks a lot, it is working now !!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/164413?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 06:45:24 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:aba612b5-0472-416e-b05c-934ee4e3d7b0</guid><dc:creator>clem57</dc:creator><description>&lt;p style="margin:0;"&gt;That means you are running a resolvconf. Try adding to network config file above after gateway line:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;code style="font-family:Consolas, Menlo, Monaco, &amp;#39;Lucida Console&amp;#39;, &amp;#39;Liberation Mono&amp;#39;, &amp;#39;DejaVu Sans Mono&amp;#39;, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, monospace, sans-serif;"&gt;dns-nameservers 8.8.8.8 8.8.4.4&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;code style="font-family:Consolas, Menlo, Monaco, &amp;#39;Lucida Console&amp;#39;, &amp;#39;Liberation Mono&amp;#39;, &amp;#39;DejaVu Sans Mono&amp;#39;, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, monospace, sans-serif;"&gt;C&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/74753?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 05:25:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b9affcf4-3d45-4a65-8cab-0d132bf73253</guid><dc:creator>Former Member</dc:creator><description>&lt;p style="margin:0;"&gt;Thanks for your reply, i tried to edit the resolv.conf, but after rebooting Pi, that file get reset and shows empty file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/74752?ContentTypeID=1</link><pubDate>Tue, 04 Aug 2015 05:22:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:05f083f0-1196-4ce8-b415-6612c79828a5</guid><dc:creator>Former Member</dc:creator><description>&lt;p style="margin:0;"&gt;Thanks for your reply, my network configuration file is&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;auto lo&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;iface lo inet loopback&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;auto eth0&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;allow-hotplug eth0&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;iface eth0 inet static&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;address 192.168.1.141&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;netmask 255.255.255.0&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;gateway 192.168.1.1&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;preferred dns 202.138.103.100&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;alternate dns 202.138.96.2&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;auto wlan0&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;allow-hotplug wlan0&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;iface wlan0 inet manual&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;auto wlan1&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;allow-hotplug wlan1&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;iface wlan1 inet manual&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/74720?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 16:00:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:40f0a4f1-7417-47e5-a506-b9723570dcf5</guid><dc:creator>balearicdynamics</dc:creator><description>&lt;p style="margin:0;"&gt;Clem, &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;it is correct but - without the network configuration files - if Gunasekaran has already a different DNS defined in the network specifications or somewhere else maybe that the google DNS will be overidden and the name resolving generates anyway issues.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;Enrico&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/74714?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 13:21:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8375bed1-ae2e-4df6-83fc-9a2bbba02286</guid><dc:creator>clem57</dc:creator><description>&lt;p style="margin:0;"&gt;Simply your DNS is not resolving. So edit or create &lt;span style="color:#000000;font-family:monospace;font-size:13px;"&gt;/etc/resolv.conf adding: &lt;span style="color:#000000;font-family:monospace;font-size:13px;"&gt;(Google public DNS)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#000000;font-family:monospace;font-size:13px;"&gt;nameserver 8.8.8.8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#000000;font-size:13px;font-family:monospace;"&gt;nameserver 8.8.4.4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#000000;font-family:monospace;font-size:13px;"&gt;C&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#000000;font-family:monospace;font-size:13px;"&gt;Edit: &lt;span&gt;&lt;a href="https://community.element14.com/members/element14dave"&gt;element14Dave&lt;/a&gt;&lt;/span&gt; could you please move this to Raspberry Pi section. Gracias!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: raspberry pi2 - Internet not connecting through hostname, but connecting through IP</title><link>https://community.element14.com/thread/74713?ContentTypeID=1</link><pubDate>Mon, 03 Aug 2015 12:58:43 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:54e11a8f-6a13-49a8-bcf2-5cd9d86b1497</guid><dc:creator>fvan</dc:creator><description>&lt;p style="margin:0;"&gt;Can you show the network configuration file ? Did you specify one or more DNS servers ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>