Red Hat Bugzilla – Bug 146475
Unable to startup "system-config-bind"
Last modified: 2007-11-30 17:10:59 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5)
Description of problem:
When I execute the command "system-config-bind", following error is
Returing value of lookup_addr function is invalid.
Traceback (most recent call last):
File "/usr/sbin/system-config-bind", line 32, in ?
from BIND import *
File "/usr/share/system-config-bind/BIND.py", line 12, in ?
File "/usr/share/system-config-bind/Lookup.py", line 136, in ?
localhost = Lookup()
File "/usr/share/system-config-bind/Lookup.py", line 125, in __init__
(name,s.addr) = s.lookup_addr(host)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. just execute "system-config-bind" as for my environment.
Python 2.3.4 (#1, Oct 26 2004, 16:42:40)
[GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
This is a patch to resolve the problem.
--- /usr/share/system-config-bind/Lookup.py.orig 2005-01-29
+++ /usr/share/system-config-bind/Lookup.py 2005-01-29
@@ -46,7 +46,7 @@
return (ipdn, string.join(addrs,' ') + ' ' +
- return None
+ return (None, None)
r = commands.getstatusoutput(s.hostname_cmd)
Aha, it appears you've discovered an interesting edge case where
the local host's name is neither "localhost", nor is it defined in
DNS - which it appears I did not test - sorry!
Yes, part of the fix is to apply the patch you've suggested, but
moreover, in case the local hostname is not "localhost" nor in DNS,
but IS in /etc/hosts, we should use the /etc/hosts values; if it is
not in /etc/hosts either, we should revert to localhost.
Unfortunately, we cannot simply use gethostbyaddr() for this purpose,
because this can potentially hang python forever.
I will implement this fix in the next version of system-config-bind.
*** Bug 146606 has been marked as a duplicate of this bug. ***
This is now fixed with system-config-bind-4.0.0-2, which will be in
FC4/rawhide 2005-02-02, and which can be downloaded from: