Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Jun 2002 00:35:30 -0500
From:      "Jon Noack" <noackjr@compgeek.com>
To:        "Redmond Militante" <r-militante@northwestern.edu>
Cc:        <freebsd-questions@freebsd.org>
Subject:   RE: problem installing mysql323-server from ports
Message-ID:  <NFBBIJDHKLKEJHKFMLBHEEMDCBAA.noackjr@compgeek.com>
In-Reply-To: <20020622232907.A11042@darkpossum>

next in thread | previous in thread | raw e-mail | index | archive | help
> Sorry, the host 'fisk246150' could not be looked up.
> i type 'hostname' and i get the correct hostname.
It would be nice if you told us what 'hostname' returns, but I will assume
your hostname is "fisk246150" based on the error above (or
fisk246150.your.domain).

> the first 2 lines in my /etc/hosts is
> ::1 localhost localhost.my.domain
> 127.0.0.1 localhost localhost.my.domain
Why do these lines matter?  While they are necessary and correct, what you
need is an entry in hosts for "fisk246150".  Something like:

BAD  = 1.2.3.4 fisk246150.your.domain
GOOD = 1.2.3.4 fisk246150 fisk246150.your.domain

Actually, if you have a BAD entry, that could cause problems if the script
is using 'hostname -s', because it would trim the domain info off (to form
"fisk246150") and then try to look that up.  That lookup would fail, because
just "fisk246150" is not present in the hosts file and DNS will obviously
fail as well.

> i did an nslookup on myself and it gives me the
> right hostname.
Again, don't just tell us it's correct -- tell us something like "'nslookup
fisk246150' correctly returns 1.2.3.4".  That is actually helpful.  As you
are having problems, anything you *think* is correct may not actually *be*
correct (or show symptoms of the true problem).  Give us the raw data *and*
your interpretation -- that gives us the chance to get an objective view of
the situation and see what you're thinking.  This often allows us to correct
the problem and give you pointers on how to approach problems in the future.

The error was that it couldn't look up "fisk246150".  Please send us the
output of the 'hostname' and 'nslookup' commands and something meaningful
from your hosts file (the localhost info is present on every FreeBSD box).

I definitely appreciate that you attempted to solve the problem before
posting to the list.  I also understand that if you've been working for a
while that the little things seem insignificant and can be glossed over.
Try not to give in to that and post as much info as you can.

Jon


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NFBBIJDHKLKEJHKFMLBHEEMDCBAA.noackjr>