Correction in previous mail Record type A not SOA

Regards
Pankaj Rawat

From: Pankaj Rawat
Sent: Friday, June 29, 2012 2:25 PM
To: '[email protected]'
Subject: Problen in dns.resolver.query function

Hi all,
Currently  I am using dnspython package to query the dns server
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.
Code is as follows:


resolver_object=Resolver();
resolver_object.nameservers=[dns_server_address]
dns.resolver.default_resolver=resolver_object
Record_Value=""
         try:
                Record_Value = dns.resolver.query(domain,"SOA")
         except DNSException, e:
                pass
         Record_Value = dns.resolver.query(domain,Record_Type)
 for i in Record_Value:
          print i

The code is working fine for  Record <= 29

Regards
Pankaj Rawat




DISCLAIMER:

-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and
intended

for the named recipient(s) only. 

It shall not attach any liability on the originator or NECHCL or its

affiliates. Any views or opinions presented in 

this email are solely those of the author and may not necessarily reflect the

opinions of NECHCL or its affiliates. 

Any form of reproduction, dissemination, copying, disclosure, modification,

distribution and / or publication of 

this message without the prior written consent of the author of this e-mail is

strictly prohibited. If you have 

received this email in error please delete it and notify the sender

immediately. .

-----------------------------------------------------------------------------------------------------------------------
_______________________________________________
dnspython-dev mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo/dnspython-dev

Reply via email to