On Thu, Jun 27, 2002 at 09:36:30AM +0800, alwyn@smart.com.ph wrote:
| Hi,
|
| I am trying to get a commercial application which was originally intended
| for Redhat 6.2 to work on Woody.
|
| It complines that gethostbyaddr() cannot find the local machine's hostname.
| The box is set up correctly and from
| strace I can see that it looks in the right files and actually reads the
| data.
Which files would that be? Which data?
If the app calls gethostbyaddr() and passes "127.0.0.1" as the
address, the function returns the first entry on the 127.0.0.1 line
from /etc/hosts. Put your FQDN there. exim and sendmail also
experience this quirk.
-D
--
"He is no fool who gives up what he cannot keep to gain what he cannot lose."
--Jim Elliot
http://dman.ddts.net/~dman/
Attachment:
pgpddCjEL2dl0.pgp
Description: PGP signature