Hide Forgot
Description of problem: Konqueror isn't able to resolve localhost despite an entry in the /etc/hosts file. Most likely, Konq is trying to resolve DNS names faster by bypassing NSS. However in doing so expected behavior is broken. How reproducible: Always Steps to Reproduce: 0. Install and start a Web server on localhost 1. Make sure /etc/hosts contains "127.0.0.1 localhost" 2. Disable all network interfaces 3. ping -c 3 localhost note that it works 4. Open "http://localhost/" in Konqueror note that it doesn't work 5. Open "http://localhost/" in Firefox note that it works
Uhm, /etc/hosts has always worked for me with Konqueror.
I tested by $ sudo yum install httpd $ sudo /etc/rc.d/init.d/httpd start Starting httpd (via systemctl): unchecked 'enable networking' in kde-plasma-networkmangement to disable all network interfaces. Firefox failed initially with a warning error: Firefox is currently in offline mode and can't browse the Web. Press "Try Again" to switch to online mode and reload the page. whereas konqueror loaded my default apache "Fedora Test Page" just fine. $ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 So, worksforme. ??
Out of paranoia, retested konq using both webkit/khtml webbrowser engines, same results (both work ok for me).
Hello, since the report is here for a while without any confirmation from the reporter, I'm closing it as worksforme. However, if it really does not work for you, Stuart, feel free to reopen it with any additional information you will be able to provide. Thank you.