LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   KDE can't resolv to localhost on -current (https://www.linuxquestions.org/questions/slackware-14/kde-cant-resolv-to-localhost-on-current-637038/)

ppr:kut 04-22-2008 09:30 AM

KDE can't resolv to localhost on -current
 
I have switched to current and so far everything works fine. All but one annoying thing.
I have set up apache with ServerName = darkstar.liwjatan.org. Entry in /etc/hosts is there and it does resolv to 127.0.0.1. Apache is up and running. When I go to darkstar.liwjatan.org in Firefox, I get the local pages. Also lynx and ping does work fine. However konqueror and kget (probably others as well) can't find darkstar.liwjatan.org, although they have no problem with localhost. When going online, darkstar.liwjatan.org does suddenly work also in KDE.

Is this a KDE bug, a problem in Slackware-current or am I just misconfiguring something?

ice_nine 04-22-2008 10:54 AM

What's your /etc/hosts file look like?

It sounds like Konqueror/Kget are trying to do a DNS lookup, but since you're not online it just fails.

ppr:kut 04-23-2008 01:18 AM

Quote:

What's your /etc/hosts file look like?
Here it is:
Code:

#
# hosts                This file describes a number of hostname-to-address
#                mappings for the TCP/IP subsystem.  It is mostly
#                used at boot time, when no name servers are running.
#                On small systems, this file can be used instead of a
#                "named" name server.  Just add the names, addresses
#                and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine.  It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1                localhost
127.0.0.1                darkstar.liwjatan.org darkstar

# End of hosts.

Actually I didn't touch that file. All content was generated by the Slackware installation scripts. It's also the same on my 12.0 machine and it does work there.


All times are GMT -5. The time now is 08:56 PM.