User action: open LibreOffice with and without a network connection, and with connections to various networks, with various different DNS servers and varying proxy setups. Result: LibreOffice takes between less than 1 and 45 seconds to start up, depending which network the computer is connected to. The quickest startup comes with no network connection. Expected result: LibreOffice should start up quickly regardless of the network context. Workaround: add the local hostname to the system hosts file with address 127.0.0.1 Conclusion: LibreOffice is trying to find the host address by looking up the hostname in the DNS. This is a Bad Idea. It wastes time and it's completely unnecessary. Under some circumstances revealing the hostname to the Internet like this could have security implications.
I'm not a network specialist, but based on your description the one logical conclusion is that all systems should have localhost set up properly in their hosts file. Can you give some reference on what the alternatives that could be used for looking up localhost are? Thanks!
Not 'localhost'. The local hostname, different for each computer. Proper setup does not require it to be in the hosts file.
Okay, could you point to resources that detail what the application should be doing instead?
"resources"? In the original bug report I provided evidence that LibreOffice was doing something pointless, inconvenient, and possibly harmful, presumably in order to try to find the IP address of the computer it's running on. I don't know why it was trying to do that, so I don't know what should be doing.
Just saw a bug report this is a duplicate of, my bad. *** This bug has been marked as a duplicate of bug 47179 ***