From: SourceForge.net <no...@so...> - 2007-11-19 02:40:31
|
Bugs item #1180344, was opened at 2005-04-10 17:24 Message generated for change (Comment added) made by kitterma You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403045&aid=1180344&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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: win32dns.py fails on windows server 2003 Initial Comment: The RegistryResolve function in win32dns.py returns an empty array in windows server 2003. ---------------------------------------------------------------------- Comment By: Scott Kitterman (kitterma) Date: 2007-11-18 21:40 Message: Logged In: YES user_id=1300068 Originator: NO Fixed in 2.3.1 ---------------------------------------------------------------------- Comment By: Scott Kitterman (kitterma) Date: 2007-02-16 08:51 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. ---------------------------------------------------------------------- Comment By: Scott Kitterman (kitterma) Date: 2007-02-15 17:24 Message: Logged In: YES user_id=1300068 Originator: NO Bug #863364 in the patches section has a different approach to fixing this same problem. ---------------------------------------------------------------------- Comment By: craig (codecraig) Date: 2006-11-27 13:07 Message: Logged In: YES user_id=1258995 Originator: NO Ok I can't seem to attach the file so you will have to manually edit win32dns.py. look for this chunk of code: try: nameserver,dummytype=_winreg.QueryValueEx(z,'NameServer') if nameserver and not (nameserver in nameservers): nameservers.extend(stringdisplay(nameserver)) except EnvironmentError: pass (starts around line 94) ....immediately after that "try/except" block, paste this code... try: nameserver,dummytype=_winreg.QueryValueEx(z,'DhcpNameServer') if nameserver and not (nameserver in nameservers): nameservers.extend(stringdisplay(nameserver)) except EnvironmentError: pass see the only difference is that now instead of only checking for "NameServer" it will check for "DhcpNameServer" as well. hope that helps someone :) ---------------------------------------------------------------------- Comment By: craig (codecraig) Date: 2006-11-27 13:05 Message: Logged In: YES user_id=1258995 Originator: NO I am on Win XP Pro, and have the same problem. I looked into the win32dns.py source code and found that it looks into the windows registry for the "NameServer" key. However, in my case the value for NameServer is empty. However, I do have an entry under DhcpNameServer, so I added 6 lines of code to win32dns.py to check both NameServer and DhcpNameServer for values. I will try to attach the updated win32dns.py file. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403045&aid=1180344&group_id=31674 |