[Mailman-Users] Mailman on Solaris8

Barry A. Warsaw barry at digicool.com
Fri May 4 18:09:17 CEST 2001


>>>>> "LM" == Len Merikanto <lennu at tietoverkot.net> writes:

    | choose_boundary
    |     hostid = socket.gethostbyname(socket.gethostname())
    | error: host not found

    LM> Hostname is ok. domain name is ok.

    LM> What can this problem be?

gethostname or gethostbyname is misconfigured? ;)

Try this in straight Python:

-------------------- snip snip --------------------
% /usr/bin/python
Python 1.5.2 (#1, Sep 17 1999, 20:15:36)  [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from socket import *
>>> gethostname()
'anthem'
>>> gethostbyname(gethostname())
'192.168.1.2'
-------------------- snip snip --------------------

Do you get the hostname and IP address as expected?  If not, then it's
a DNS, NIS, or /etc/hosts problem (i.e. a system configuration problem
and not Python or Mailman).

-Barry




More information about the Mailman-Users mailing list