<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot;]]></title><description><![CDATA[<p>hallo.<br />
Ich bekomme z.b.:(für <a href="http://www.audi.de" rel="nofollow">www.audi.de</a>)</p>
<p>143.164.100.211</p>
<p>und ping.exe<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/00a9.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--copyright"
      title=":copyright:"
      alt="©"
    /> liefert:</p>
<p>143.164.97.254</p>
<p>Was mache ich anders als Ping.exe</p>
<pre><code class="language-cpp">bool hostname2ip(char* hostname, SOCKADDR_IN* addr)
{
unsigned long ip;
HOSTENT* he;

ip=inet_addr(hostname);
if(ip!=INADDR_NONE)
	{
	addr-&gt;sin_addr.s_addr=ip;
	return true;
	}
else
	{
	he=gethostbyname(hostname);
	CopyMemory(&amp;(addr-&gt;sin_addr),he-&gt;h_addr_list[0],4);
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/77121/ich-löse-host-namen-in-ips-auf-aber-bekomme-andere-werte-als-bei-quot-ping-exe-quot</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 17:38:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/77121.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jun 2004 17:33:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot; on Thu, 17 Jun 2004 17:33:24 GMT]]></title><description><![CDATA[<p>hallo.<br />
Ich bekomme z.b.:(für <a href="http://www.audi.de" rel="nofollow">www.audi.de</a>)</p>
<p>143.164.100.211</p>
<p>und ping.exe<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/00a9.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--copyright"
      title=":copyright:"
      alt="©"
    /> liefert:</p>
<p>143.164.97.254</p>
<p>Was mache ich anders als Ping.exe</p>
<pre><code class="language-cpp">bool hostname2ip(char* hostname, SOCKADDR_IN* addr)
{
unsigned long ip;
HOSTENT* he;

ip=inet_addr(hostname);
if(ip!=INADDR_NONE)
	{
	addr-&gt;sin_addr.s_addr=ip;
	return true;
	}
else
	{
	he=gethostbyname(hostname);
	CopyMemory(&amp;(addr-&gt;sin_addr),he-&gt;h_addr_list[0],4);
	}
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/542612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542612</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Thu, 17 Jun 2004 17:33:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot; on Thu, 17 Jun 2004 17:35:11 GMT]]></title><description><![CDATA[<blockquote>
<p>C:\&gt;ping <a href="http://www.audi.de" rel="nofollow">www.audi.de</a></p>
<p>Ping <a href="http://www.audi.de" rel="nofollow">www.audi.de</a> [143.164.100.211] mit 32 Bytes Daten:</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/542614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542614</guid><dc:creator><![CDATA[sicher?]]></dc:creator><pubDate>Thu, 17 Jun 2004 17:35:11 GMT</pubDate></item><item><title><![CDATA[Reply to Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot; on Thu, 17 Jun 2004 17:38:48 GMT]]></title><description><![CDATA[<p>Ok, die Frage zu meinem Code hat sich erledigt.<br />
Was ich anders gamcht hatte war folgendes:</p>
<p>Im Proggy ahbe ich nach &quot;<a href="http://www.audi.de" rel="nofollow">www.audi.de</a>&quot; aufgelöst und im Ping.exe nach &quot;<a href="http://audi.de" rel="nofollow">audi.de</a>&quot;.<br />
Nur noch eine Frage: Ich dachte immer das &quot;www.&quot; sei immer unnötig. Welchen unterschied amcht das www nun genau.<br />
Was mich das glauben ließ ist der Internet Explorer, der das nciht erfordert. Aber ich nehme mal an er ergänzt das intern auch..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/542616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542616</guid><dc:creator><![CDATA[Tolga]]></dc:creator><pubDate>Thu, 17 Jun 2004 17:38:48 GMT</pubDate></item><item><title><![CDATA[Reply to Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot; on Thu, 17 Jun 2004 19:10:17 GMT]]></title><description><![CDATA[<p>Das www kann einen unterschied machen, muss aber nicht. Kommt ganz auf den nameserver an. Prinzipiell kann jede subdomain, also <a href="http://xyz.host.org" rel="nofollow">xyz.host.org</a> auf eine andere ip auflösen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/542698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542698</guid><dc:creator><![CDATA[shazbot]]></dc:creator><pubDate>Thu, 17 Jun 2004 19:10:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ich löse Host-Namen in IPs auf aber bekomme andere Werte als bei &amp;quot;ping.exe&amp;quot; on Fri, 18 Jun 2004 07:23:44 GMT]]></title><description><![CDATA[<p>Das siehst du z.B. auch bei den Dyndns-Anbietern <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/542915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/542915</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Fri, 18 Jun 2004 07:23:44 GMT</pubDate></item></channel></rss>