<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: DNS Query Code in C with winsock	</title>
	<atom:link href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Mon, 24 Apr 2023 19:37:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: devils		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-354008</link>

		<dc:creator><![CDATA[devils]]></dc:creator>
		<pubDate>Mon, 24 Apr 2023 19:37:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-354008</guid>

					<description><![CDATA[I am looking to run this code in vs code but it always gives me an undefined __imp_ntohs and wont compile do you know how to fix this?]]></description>
			<content:encoded><![CDATA[<p>I am looking to run this code in vs code but it always gives me an undefined __imp_ntohs and wont compile do you know how to fix this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Uri London		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-334247</link>

		<dc:creator><![CDATA[Uri London]]></dc:creator>
		<pubDate>Fri, 25 Mar 2022 18:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-334247</guid>

					<description><![CDATA[Is it possible that in various places, you have an out of bound bug (and you were lucky not to get an access violation):
For example, in line 212:

            answers[i].rdata = (unsigned char*)malloc(ntohs(answers[i].resource-&#062;data_len));
            for(j=0 ; jdata_len) ; j++)
                answers[i].rdata[j]=reader[j];
            answers[i].rdata[ntohs(answers[i].resource-&#062;data_len)] = &#039;\0&#039;;

You are allocating a buffer with data_len length, but you access data_len + 1]]></description>
			<content:encoded><![CDATA[<p>Is it possible that in various places, you have an out of bound bug (and you were lucky not to get an access violation):<br />
For example, in line 212:</p>
<p>            answers[i].rdata = (unsigned char*)malloc(ntohs(answers[i].resource-&gt;data_len));<br />
            for(j=0 ; jdata_len) ; j++)<br />
                answers[i].rdata[j]=reader[j];<br />
            answers[i].rdata[ntohs(answers[i].resource-&gt;data_len)] = &#8216;\0&#8217;;</p>
<p>You are allocating a buffer with data_len length, but you access data_len + 1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: brian		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-210262</link>

		<dc:creator><![CDATA[brian]]></dc:creator>
		<pubDate>Tue, 24 Sep 2019 01:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-210262</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-3646&quot;&gt;Adrian&lt;/a&gt;.

Use select() before recvfrom()]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-3646">Adrian</a>.</p>
<p>Use select() before recvfrom()</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: abhinav		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-69057</link>

		<dc:creator><![CDATA[abhinav]]></dc:creator>
		<pubDate>Mon, 29 Feb 2016 06:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-69057</guid>

					<description><![CDATA[in line 163 why is +1 added. I am not able to understand it. Pls can anyone help me. Thanks in advance]]></description>
			<content:encoded><![CDATA[<p>in line 163 why is +1 added. I am not able to understand it. Pls can anyone help me. Thanks in advance</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: hillelsr		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-66167</link>

		<dc:creator><![CDATA[hillelsr]]></dc:creator>
		<pubDate>Fri, 16 May 2014 15:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-66167</guid>

					<description><![CDATA[how was the buffer size calculated?]]></description>
			<content:encoded><![CDATA[<p>how was the buffer size calculated?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Swen Kooij		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-65962</link>

		<dc:creator><![CDATA[Swen Kooij]]></dc:creator>
		<pubDate>Tue, 28 Jan 2014 20:31:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-65962</guid>

					<description><![CDATA[Why do you attempt to support domain names with Unicode characters? (&#062;= 192). Section 3.1 of RFC-1035 clearly states: &quot;assuming an ASCII character set, and a high order zero bit&quot;.]]></description>
			<content:encoded><![CDATA[<p>Why do you attempt to support domain names with Unicode characters? (&gt;= 192). Section 3.1 of RFC-1035 clearly states: &#8220;assuming an ASCII character set, and a high order zero bit&#8221;.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fourty		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-64974</link>

		<dc:creator><![CDATA[Fourty]]></dc:creator>
		<pubDate>Fri, 08 Mar 2013 12:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-64974</guid>

					<description><![CDATA[I wrote a windows version independent function a while ago to retrieve the dns server(s), perhaps it would be useful to someone (m_slWinsockDNS is type CStringList):

#include 

int CSMTPClient::DiscoverWinsockDNSServers()
{
int iCount = 0;
    GUID guid = SVCID_NAMESERVER_UDP;

    WSAQUERYSET qs = {0};
    qs.dwSize = sizeof(WSAQUERYSET);
    qs.dwNameSpace = NS_DNS;
    qs.lpServiceClassId = &#038;guid;

    HANDLE hLookup;
    int nRet = WSALookupServiceBegin(&#038;qs, LUP_RETURN_NAME&#124;LUP_RETURN_ADDR, &#038;hLookup);
    if(nRet == SOCKET_ERROR)
    {
        int iError = WSAGetLastError();
        ReportError(_T(&quot;Error obtaining DNS Server information (%d) %s&quot;), 
            iError, GetWin32ErrorText(iError));
        return - 1;
    }

    // Loop through the services
    DWORD dwResultLen = 1024;
    unsigned char* pResultBuf = new unsigned char[dwResultLen];

    while(TRUE)
    {
        nRet = WSALookupServiceNext(hLookup, 
            LUP_RETURN_NAME&#124;LUP_RETURN_ADDR, 
            &#038;dwResultLen, (WSAQUERYSET*)pResultBuf);
        if(nRet == SOCKET_ERROR)
        {
            // Buffer too small?
            if(WSAGetLastError() == WSAEFAULT)
            {
                delete pResultBuf;
                pResultBuf = new unsigned char[dwResultLen];
                continue;
            }
            break;
        }

        WSAQUERYSET* pqs = (LPWSAQUERYSET)pResultBuf;
        CSADDR_INFO* pcsa = pqs-&#062;lpcsaBuffer;

        // Loop through the CSADDR_INFO array
        for(int x = 0; x dwNumberOfCsAddrs; x ++)
        {
            // Get string equivalent for address
            TCHAR strAddrBuf[256] = {_T(&#039;&#039;)};
            DWORD dwLen = sizeof(strAddrBuf);
            nRet = WSAAddressToString(pcsa-&#062;RemoteAddr.lpSockaddr,
                pcsa-&#062;RemoteAddr.iSockaddrLength, NULL, strAddrBuf, &#038;dwLen);
            if(nRet == SOCKET_ERROR)
                break;

            // Remove the port number (&#039;:#&#039;)
            CString strResult = strAddrBuf;
            CString strIP = _T(&quot;&quot;);
            int i = strResult.Find(_T(&#039;:&#039;));
            if(i == -1)
                strIP = strResult;
            else
                strIP = strResult.Left(i);            

            // Check for the duplicates before adding it
            if(m_slWinsockDNS.Find(strIP) == NULL)
            {
                m_slWinsockDNS.AddTail(strIP);
                iCount ++;
            }
            pcsa++;
        }
    }

    // Clean up
    WSALookupServiceEnd(hLookup);
    delete pResultBuf;

    return iCount;
}]]></description>
			<content:encoded><![CDATA[<p>I wrote a windows version independent function a while ago to retrieve the dns server(s), perhaps it would be useful to someone (m_slWinsockDNS is type CStringList):</p>
<p>#include </p>
<p>int CSMTPClient::DiscoverWinsockDNSServers()<br />
{<br />
int iCount = 0;<br />
    GUID guid = SVCID_NAMESERVER_UDP;</p>
<p>    WSAQUERYSET qs = {0};<br />
    qs.dwSize = sizeof(WSAQUERYSET);<br />
    qs.dwNameSpace = NS_DNS;<br />
    qs.lpServiceClassId = &amp;guid;</p>
<p>    HANDLE hLookup;<br />
    int nRet = WSALookupServiceBegin(&amp;qs, LUP_RETURN_NAME|LUP_RETURN_ADDR, &amp;hLookup);<br />
    if(nRet == SOCKET_ERROR)<br />
    {<br />
        int iError = WSAGetLastError();<br />
        ReportError(_T(&#8220;Error obtaining DNS Server information (%d) %s&#8221;),<br />
            iError, GetWin32ErrorText(iError));<br />
        return &#8211; 1;<br />
    }</p>
<p>    // Loop through the services<br />
    DWORD dwResultLen = 1024;<br />
    unsigned char* pResultBuf = new unsigned char[dwResultLen];</p>
<p>    while(TRUE)<br />
    {<br />
        nRet = WSALookupServiceNext(hLookup,<br />
            LUP_RETURN_NAME|LUP_RETURN_ADDR,<br />
            &amp;dwResultLen, (WSAQUERYSET*)pResultBuf);<br />
        if(nRet == SOCKET_ERROR)<br />
        {<br />
            // Buffer too small?<br />
            if(WSAGetLastError() == WSAEFAULT)<br />
            {<br />
                delete pResultBuf;<br />
                pResultBuf = new unsigned char[dwResultLen];<br />
                continue;<br />
            }<br />
            break;<br />
        }</p>
<p>        WSAQUERYSET* pqs = (LPWSAQUERYSET)pResultBuf;<br />
        CSADDR_INFO* pcsa = pqs-&gt;lpcsaBuffer;</p>
<p>        // Loop through the CSADDR_INFO array<br />
        for(int x = 0; x dwNumberOfCsAddrs; x ++)<br />
        {<br />
            // Get string equivalent for address<br />
            TCHAR strAddrBuf[256] = {_T(&#8221;)};<br />
            DWORD dwLen = sizeof(strAddrBuf);<br />
            nRet = WSAAddressToString(pcsa-&gt;RemoteAddr.lpSockaddr,<br />
                pcsa-&gt;RemoteAddr.iSockaddrLength, NULL, strAddrBuf, &amp;dwLen);<br />
            if(nRet == SOCKET_ERROR)<br />
                break;</p>
<p>            // Remove the port number (&#8216;:#&#8217;)<br />
            CString strResult = strAddrBuf;<br />
            CString strIP = _T(&#8220;&#8221;);<br />
            int i = strResult.Find(_T(&#8216;:&#8217;));<br />
            if(i == -1)<br />
                strIP = strResult;<br />
            else<br />
                strIP = strResult.Left(i);            </p>
<p>            // Check for the duplicates before adding it<br />
            if(m_slWinsockDNS.Find(strIP) == NULL)<br />
            {<br />
                m_slWinsockDNS.AddTail(strIP);<br />
                iCount ++;<br />
            }<br />
            pcsa++;<br />
        }<br />
    }</p>
<p>    // Clean up<br />
    WSALookupServiceEnd(hLookup);<br />
    delete pResultBuf;</p>
<p>    return iCount;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Fourty		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-64973</link>

		<dc:creator><![CDATA[Fourty]]></dc:creator>
		<pubDate>Fri, 08 Mar 2013 11:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-64973</guid>

					<description><![CDATA[Thanks allot man, real nice work.]]></description>
			<content:encoded><![CDATA[<p>Thanks allot man, real nice work.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: doicanhden		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-61979</link>

		<dc:creator><![CDATA[doicanhden]]></dc:creator>
		<pubDate>Tue, 18 Dec 2012 10:47:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-61979</guid>

					<description><![CDATA[[code language=&quot;cpp&quot;]
/* 
 * this will convert www.google.com
 * to 3www6google3com;
 * got it :)
 */
void ChangetoDnsNameFormat(byte_t* szDns, byte_t* szHost)
{
	int src = 0, des = 0, len = 0; // Some positions.
	szDns[len] = 0;
	while (szHost[src] != &#039;&#092;&#048;&#039;) {
		if (szHost[src] == &#039;.&#039;) {
			len += szDns[len] + 1;
			szDns[len] = 0;

			des = len;
			++src; // Ignore &#039;.&#039;
		} else {
			szDns[++des] = szHost[src++];
			++szDns[len];
		}
	}
	szDns[++des] = &#039;&#092;&#048;&#039;;
}
[/code]]]></description>
			<content:encoded><![CDATA[<p>[code language=&#8221;cpp&#8221;]<br />
/*<br />
 * this will convert <a href="http://www.google.com" rel="nofollow ugc">http://www.google.com</a><br />
 * to 3www6google3com;<br />
 * got it :)<br />
 */<br />
void ChangetoDnsNameFormat(byte_t* szDns, byte_t* szHost)<br />
{<br />
	int src = 0, des = 0, len = 0; // Some positions.<br />
	szDns[len] = 0;<br />
	while (szHost[src] != &#8216;&#092;&#048;&#8217;) {<br />
		if (szHost[src] == &#8216;.&#8217;) {<br />
			len += szDns[len] + 1;<br />
			szDns[len] = 0;</p>
<p>			des = len;<br />
			++src; // Ignore &#8216;.&#8217;<br />
		} else {<br />
			szDns[++des] = szHost[src++];<br />
			++szDns[len];<br />
		}<br />
	}<br />
	szDns[++des] = &#8216;&#092;&#048;&#8217;;<br />
}<br />
[/code]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-56420</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Tue, 25 Sep 2012 08:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-56420</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-56317&quot;&gt;Keshav&lt;/a&gt;.

the answer might differ due to a number of reasons. post the output here.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-56317">Keshav</a>.</p>
<p>the answer might differ due to a number of reasons. post the output here.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Keshav		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-56317</link>

		<dc:creator><![CDATA[Keshav]]></dc:creator>
		<pubDate>Sun, 23 Sep 2012 19:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-56317</guid>

					<description><![CDATA[Hey why does the answers differ if i use nslookup and then ur code, they show diffrent result. can u please explain.]]></description>
			<content:encoded><![CDATA[<p>Hey why does the answers differ if i use nslookup and then ur code, they show diffrent result. can u please explain.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nik		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33842</link>

		<dc:creator><![CDATA[Nik]]></dc:creator>
		<pubDate>Thu, 14 Jun 2012 16:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33842</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33841&quot;&gt;Nik&lt;/a&gt;.

I&#039;ve found the answer.

To do a reverse lookup (PTR) on an IP Address:
1. First reverse the IP address (from say 1.23.45.201 to 201.45.23.1 and append &quot;.in-addr.arpa&quot; to it). 
    Will now be 201.45.23.1.in-addr.arpa.
2. Call the ChangetoDnsNameFormat() function on it.
3. Add a case in the print answers section for 12 (T_PTR) and handle it the same as T_CNAME 
   (i.e. look at the answers[i].rdata.c_str() variable).

Happy days.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33841">Nik</a>.</p>
<p>I&#8217;ve found the answer.</p>
<p>To do a reverse lookup (PTR) on an IP Address:<br />
1. First reverse the IP address (from say 1.23.45.201 to 201.45.23.1 and append &#8220;.in-addr.arpa&#8221; to it).<br />
    Will now be 201.45.23.1.in-addr.arpa.<br />
2. Call the ChangetoDnsNameFormat() function on it.<br />
3. Add a case in the print answers section for 12 (T_PTR) and handle it the same as T_CNAME<br />
   (i.e. look at the answers[i].rdata.c_str() variable).</p>
<p>Happy days.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nik		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33841</link>

		<dc:creator><![CDATA[Nik]]></dc:creator>
		<pubDate>Thu, 14 Jun 2012 16:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33841</guid>

					<description><![CDATA[Any tips on address format for reverse (PTR) lookup?
I seem to have hit a wall.]]></description>
			<content:encoded><![CDATA[<p>Any tips on address format for reverse (PTR) lookup?<br />
I seem to have hit a wall.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: brian		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33827</link>

		<dc:creator><![CDATA[brian]]></dc:creator>
		<pubDate>Tue, 29 May 2012 06:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33827</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33826&quot;&gt;saeed&lt;/a&gt;.

This is because : 3www6google3com0
look this 3www.7gooogle4gato3com0
The number is the number of characteres after the point. You replace the point with the number of characteres of the text segments. 
Sorry for my english!
Enjoy it.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33826">saeed</a>.</p>
<p>This is because : 3www6google3com0<br />
look this 3www.7gooogle4gato3com0<br />
The number is the number of characteres after the point. You replace the point with the number of characteres of the text segments.<br />
Sorry for my english!<br />
Enjoy it.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: saeed		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33826</link>

		<dc:creator><![CDATA[saeed]]></dc:creator>
		<pubDate>Sun, 27 May 2012 16:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33826</guid>

					<description><![CDATA[why do we represent www.google.com as 3www6google3com0?]]></description>
			<content:encoded><![CDATA[<p>why do we represent <a href="http://www.google.com" rel="nofollow ugc">http://www.google.com</a> as 3www6google3com0?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: cristian_gog		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33731</link>

		<dc:creator><![CDATA[cristian_gog]]></dc:creator>
		<pubDate>Mon, 14 May 2012 09:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33731</guid>

					<description><![CDATA[Hello.

Nice code.
The reversed search   is not implemented I think and I can see some interpretation issues when running 

Can you fix that?
all the best :)]]></description>
			<content:encoded><![CDATA[<p>Hello.</p>
<p>Nice code.<br />
The reversed search   is not implemented I think and I can see some interpretation issues when running </p>
<p>Can you fix that?<br />
all the best :)</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Razvan		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33680</link>

		<dc:creator><![CDATA[Razvan]]></dc:creator>
		<pubDate>Wed, 09 May 2012 07:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33680</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33659&quot;&gt;brian&lt;/a&gt;.

Yes i already found the link , although thank you]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33659">brian</a>.</p>
<p>Yes i already found the link , although thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: brian		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33659</link>

		<dc:creator><![CDATA[brian]]></dc:creator>
		<pubDate>Sun, 06 May 2012 17:39:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33659</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33639&quot;&gt;Razvan&lt;/a&gt;.

Hi guy, if you pay attention, in the bottom of the article, there´s a link to the linux code: http://www.binarytides.com/blog/dns-query-code-in-c-with-linux-sockets/

Regards.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33639">Razvan</a>.</p>
<p>Hi guy, if you pay attention, in the bottom of the article, there´s a link to the linux code: <a href="http://www.binarytides.com/blog/dns-query-code-in-c-with-linux-sockets/" rel="ugc">http://www.binarytides.com/blog/dns-query-code-in-c-with-linux-sockets/</a></p>
<p>Regards.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Razvan		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33639</link>

		<dc:creator><![CDATA[Razvan]]></dc:creator>
		<pubDate>Sat, 05 May 2012 08:05:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33639</guid>

					<description><![CDATA[Hey, very nice article.I have a question for you , how do you modify the code to run on linux instead of windows, for example the WSADATA structures are not recognized in linux and a lot of others. With a simple compile in linux you get lots of this &quot;...&quot; was not declared in this scope.I would love if you could give me an answer.Thank you]]></description>
			<content:encoded><![CDATA[<p>Hey, very nice article.I have a question for you , how do you modify the code to run on linux instead of windows, for example the WSADATA structures are not recognized in linux and a lot of others. With a simple compile in linux you get lots of this &#8220;&#8230;&#8221; was not declared in this scope.I would love if you could give me an answer.Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: brian		</title>
		<link>https://www.binarytides.com/dns-query-code-in-c-with-winsock/comment-page-1/#comment-33621</link>

		<dc:creator><![CDATA[brian]]></dc:creator>
		<pubDate>Fri, 04 May 2012 05:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/blog/?p=7#comment-33621</guid>

					<description><![CDATA[Hi my friend, i was looking for this information a long time. I wann say thank you for your great help. There´s no so many people with your knowledge who want to share it. Sorry for my english.  

Regards!

Thanks from Argentina!.]]></description>
			<content:encoded><![CDATA[<p>Hi my friend, i was looking for this information a long time. I wann say thank you for your great help. There´s no so many people with your knowledge who want to share it. Sorry for my english.  </p>
<p>Regards!</p>
<p>Thanks from Argentina!.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
