I have created a static zone file for "<a href="http://www.abcd.com">www.abcd.com</a>" with the Answer section entries containing 2 IP addresses like 1.1.1.1 and 2.2.2.2. I tried to print these addresses in the towiresorted function for the random order like ->
<div><br></div><div>for(i=0;i<count;i++)</div><div>{<br>                char adstr[40];</div><div>                isc_uint32_t ip_host=(*(isc_uint32_t *)sorted[i].rdata->data);</div><div>                inet_ntop(AF_INET,&(ip_host),adstr,adstr,40);</div>
<div>                printf("%s  \n",adstr);</div><div>}</div><div><br></div><div><br></div><div>thinking that rdata->data contains the IP addresses of the answer section. But i am getting different IP addresses when i'm running named and using dig <a href="http://www.abcd.com">www.abcd.com</a>. Some help as to what exactly stores the IPs contained in the Answer section would be really great.</div>
<div><br></div><div>Regards,</div><div>Vignesh.</div>