From: SourceForge.net <no...@so...> - 2007-11-19 02:45:05
|
Patches item #1563723, was opened at 2006-09-22 16:42 Message generated for change (Comment added) made by kitterma You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403047&aid=1563723&group_id=31674 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bug fixes Group: None Status: Open Resolution: None Priority: 6 Private: No Submitted By: Noah Spurrier (noah) Assigned to: Nobody/Anonymous (nobody) Summary: lazy should initilize defaults['server'] Initial Comment: Calling lazy.mxlookup(name) does not work out of the box. Since the name of this module does more than just imply laziness, it makes more sense that lazy should initialize the DNS server. This was a simple matter of adding a couple lines: if Base.defaults['server'] == []: Base.DiscoverNameServers() This almost seems like a bug since it's undocumented that defaults['server'] needs to be initialized before you can use any calls to lazy. It's not clear how lazy was intended to work, but one would presume that you could just import lazy then do a call to mxlookup. It looks like this project might have been abandoned, but perhaps this will be useful to other users out there that want to manually patch their pydns. ---------------------------------------------------------------------- Comment By: Scott Kitterman (kitterma) Date: 2007-11-18 21:45 Message: Logged In: YES user_id=1300068 Originator: NO Fixed in 2.3.1 ---------------------------------------------------------------------- Comment By: Scott Kitterman (kitterma) Date: 2007-02-16 08:50 Message: Logged In: YES user_id=1300068 Originator: NO A fix for this issue has been included in the latest python-dns update in Ubuntu Linux. See https://launchpad.net/ubuntu/+source/python-dns/2.3.0-5.1ubuntu2 for details. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403047&aid=1563723&group_id=31674 |