Doubt with towiresorted

Vignesh Gadiyar vcgadiyar at
Fri Jul 1 06:40:46 UTC 2011

I have created a static zone file for "" with the Answer section
entries containing 2 IP addresses like and I tried to print
these addresses in the towiresorted function for the random order like ->

                char adstr[40];
                isc_uint32_t ip_host=(*(isc_uint32_t
                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 Some help as to what exactly stores the IPs contained in the
Answer section would be really great.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bind-users mailing list