On Tue, 02 Dec 2003 18:30:21 GMT, P.T. Breuer <(E-Mail Removed)> wrote:
> Dr. O <dr.o@xxxxx> wrote:
>> "Dr. O" <dr.o@xxxxx> wrote in message
>> news:3fcca272$0$121$(E-Mail Removed)...
>> > I've installed an old version of Corel Linux / Debian on my PC and I wanted
>> > to try the webserver Apache. When I start the webserver, however I get an
>> > error in the logfile, something like 'cannot resolve
>> > gethostbyname("catbert5")'. The webserver isn't running afterwards even
>> > after I do a 'Apache start' so the error must be critical.
>> >
>> > I believe it's a DNS error but I don't know how to solve the problem.
>
> Fix your domain name service resolution.
>
>> Someone else helped me solve it. My 'hosts' file looked like
>
>> 127.0.0.1 localhost
>
>> I just added the line
>
>> 127.0.0.1 catbert5
>
> This is incorrect.
>
> 1) it should be "127.0.0.2", not "127.0.0.1"
> 2) it should be "catbert5.foo.org catbert5", not "catbert5"
or at least:
127.0.0.1 localhost
127.0.0.2 catbert5
Generally the 127.0.0.1 line should NOT be altered, or it may break other
daemons or programs, leaving the OP wondering why those do not work. If
the user does have a local domain the FQDN of the hostname would be listed
first followed by a whitespace (space, tab, etc.) separated list of
aliases (per 'man 5 resolver').
>> to it and now it works!
>
> But only because it is less broken than before. Fix it properly. Why do
> you think up such brokenesses in the first place? If you didn't invent
> them, you wouldn't have to invent fixes for them either!
>
> Peter
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/