[Bug 389818] New: OpenOffice uses gethostbyname to resolve host name
https://bugzilla.novell.com/show_bug.cgi?id=389818 Summary: OpenOffice uses gethostbyname to resolve host name Product: openSUSE 11.0 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: OpenOffice.org AssignedTo: pmladek@novell.com ReportedBy: lnussel@novell.com QAContact: qa@suse.de CC: mmeeks@novell.com, captain.magnus@opensuse.org Found By: --- In sal/osl/unx/socket.c, osl_psz_getLocalHostname() OpenOffice calls gethostbyname() to resolve the systems' hostname with DNS. That causes DNS timeouts on systems where the hostname is not resolvable such as laptops. OpenOffice only does the DNS lookup if the hostname doesn't already contain a dot. The assumption that a dot means the hostname is fully qualified is wrong though. A hostname with a dot could just as well mean that the system is in a sub domain (see also ndots in resolv.conf). If DNS resolving fails OpenOffice just uses the unqualified name so unavailability of DNS is not detrimental. Is there any reason to try DNS in the first place after all? If osl_psz_getLocalHostname() just used gethostname() the DNS timeout could be avoided. On previous openSUSE releases OpenOffice likely didn't use the official FQDN but something like 'linux.site' due to entries in /etc/hosts anyways. See also bug 383336 for a lengthy discussion about unecessary dns timeouts. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=389818
User mmeeks@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=389818#c1
Michael Meeks
https://bugzilla.novell.com/show_bug.cgi?id=389818
User captain.magnus@opensuse.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=389818#c2
Magnus Boman
participants (1)
-
bugzilla_noreply@novell.com