Hello all,

I'm new to this list. I have written a script that uses dnspython for several 
DNS checks which generally works fine, thanks to the flexibility of dnspython. 
One method in this script uses dns.message.make_query(domain, "SOA") to create 
a SOA query and then calls dns.query.tcp(soa_query, nameserver, timeout=5) to 
execute the query against a particular nameserver.

This code gets called for a number of domains, but every once in a while this 
call to dns.query.tcp raises an EOFError for this first domain. This is the 
traceback:

----
Traceback (most recent call last):
 File "/usr/bin/lemonbit-nameserver-check", line 154, in ?
   soa_at_ns = check_soa(domain, nameserver)
 File "/usr/bin/lemonbit-nameserver-check", line 58, in check_soa
   first_record = dns.query.tcp(soa_query, str(nameserver), 
timeout=5).answer[0][0]
 File "/usr/lib/python2.3/site-packages/dns/query.py", line 231, in tcp
   ldata = _net_read(s, 2, expiration)
 File "/usr/lib/python2.3/site-packages/dns/query.py", line 153, in _net_read
   raise EOFError
EOFError
----

It seems the EOFError is raised by the _net_read method in query.py from 
dnspython. Does this EOFError being raised indicate a network error or could 
the cause be something else?

Thanks,

Nils Breunese.
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users

Reply via email to