On 29 Jun 2012, at 09:56, Pankaj Rawat wrote: > I have a zone with 100 IP Assigned > > Now when I query the zone using the dnspython on A record only 29 records are > returned, each time I execute the query only 29 records are returned but > different one. > Can any one tell me how to get all 100 Records.
If you are not using dnspython 1.10.0, you should upgrade to it as dns.resolver.query() in prior versions of dnspython does not retry using TCP when the TC (truncation) bit is set on a response. 29 records is going to be right around the size limit for a UDP DNS response not using EDNS0 (i.e. 512 bytes). The server will be setting the TC bit to let the querier know it should retry with TCP which has a higher maximum message size (65535 bytes). Prior to version 1.10.0, dnspython ignored the TC flag and return a partial RRset instead of retrying with TCP to get the full set. /Bob
_______________________________________________ dnspython-dev mailing list [email protected] http://howl.play-bow.org/mailman/listinfo/dnspython-dev
