Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Jan 2004 11:52:58 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        "Rommel B. Ikeda" <r_ikeda@i-international.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: NOQUEUE: SYSERR (root): host "localhost" unknown ?
Message-ID:  <20040115115258.GA82601@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <1074165350.24553.9.camel@IBM-R40e.i-international.org>
References:  <20040114040832.6951.qmail@webmail-2-1.secureserver.net> <20040114081817.GA74603@happy-idiot-talk.infracaninophile.co.uk> <1074165350.24553.9.camel@IBM-R40e.i-international.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--YZ5djTAD1cGYuMQK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jan 15, 2004 at 08:15:51PM +0900, Rommel B. Ikeda wrote:
> On Wed, 2004-01-14 at 17:18, Matthew Seaman wrote:
> > On Tue, Jan 13, 2004 at 09:08:32PM -0700, Rommel B. Ikeda wrote:
> > > Hi,
> > >=20
> > > I do not know if the "Subject Name" was the right one for it...becaus=
e I really do not know what is going on...
> > >=20
> > > I have been seeing this message...
> > >=20
> > >      554.5.3.0 host "localhost" unknown: Invalid Argument
> > >      Jan.... IBM-R40e sm-mta [417] NOQUEUE:SYSERR (root)"localhost" u=
nknown: Invalid Argument
> >=20
> > Sendmail is trying to convert the hostname 'localhost' into an IP
> > number.  Not being able to do that is not good.
> >=20
> > You should have at least an entry for localhost in your /etc/hosts:
> >=20
> >     127.0.0.1		localhost
> >=20
> > You might also have the IPv6 equivalent:
> >=20
> >     ::1                 localhost
> >=20
> > and having the same information available from the DNS is quite handy:
> >=20
> >     % host localhost.
> >     localhost has address 127.0.0.1
> >     localhost has address ::1
> >     localhost mail is handled (pri=3D5) by localhost
> >=20
> > Note: you will also tend to have entries for
> > 'localhost.your.domain.com' -- these are fine, but not as important as
> > the straight 'localhost' entries.

> Thank you very much for the reply...
> This was what was in my /etc/hosts before your response...
>=20
> 	::1		IBM-R40e IBM-R40e@point.ne.jp
> 	127.0.0.1	IBM-R40e IBM-R40e@point.ne.jp
> 	192.168.1.35	IBM-R40e IBM-R40e@point.ne.jp
>=20
> This is my new /etc/hosts now:
> 	::1		localhost
> 	127.0.0.1	localhost
> 	10.0.0.1	IBM-R40e@point.ne.jp

That's good.  However, you don't want an '@' sign in a hostname: I
guess you probably want that last line to read:

    10.0.0.1        IBM-R40e IBM-R40e.point.ne.jp
=20
> I had to supply 10.0.0.1 IBM-R40e@point.ne.jp because Gnome 2 complains
> that it can not find it...So, I just invented it...I hope that it is
> right...

Possibly.  It depends very much on your local configuration.  If you
have a local ethernet network and there is an interface configured to
use that address, then that's good.  If you don't have a local network
using that address then you might get 'No route to host' type errors,
in which case you can attach the hostname as an alias to the loopback
interface, just so long as the localhost stuff is there as well:

    127.0.0.1     localhost IBM-R40e IBM-R40e.point.ne.jp

> One thing I do not I understand is that when I do:
> 	%host localhost.
> It will be give a "Host not found" response...But, my system is working
> fine...What do you think is wrong with it...

That just means you haven't got the localhost stuff set up in the DNS
servers you use.  That's OK -- having the DNS support is entirely
optional, so long as you have the right settings in /etc/hosts.

	Cheers,

	Matthew=20

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--YZ5djTAD1cGYuMQK
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFABn8adtESqEQa7a0RAtVUAJ9e5qd0oVksHH8+kTCcZw7RBYlvFgCggr/c
mB5sVWLj3/LQ0NGtI5fBs2g=
=hC3E
-----END PGP SIGNATURE-----

--YZ5djTAD1cGYuMQK--



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