I have created a static zone file for "www.abcd.com" 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 ->

for(i=0;i<count;i++)
{
                char adstr[40];
                isc_uint32_t ip_host=(*(isc_uint32_t
*)sorted[i].rdata->data);
                inet_ntop(AF_INET,&(ip_host),adstr,adstr,40);
                printf("%s  \n",adstr);
}


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
www.abcd.com. Some help as to what exactly stores the IPs contained in the
Answer section would be really great.

Regards,
Vignesh.
_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to