From owner-freebsd-questions@FreeBSD.ORG Thu Jan 15 05:39:30 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8CB716A4D5 for ; Thu, 15 Jan 2004 05:39:30 -0800 (PST) Received: from mta6p.point.ne.jp (mta6.point.ne.jp [210.188.175.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 653DC43D5D for ; Thu, 15 Jan 2004 05:39:18 -0800 (PST) (envelope-from r_ikeda@i-international.org) Received: from vc4.point.ne.jp ([211.1.103.131]) by mta6p.point.ne.jp with ESMTP id <20040115133916.TDYB6826.mta6p@vc4.point.ne.jp>; Thu, 15 Jan 2004 22:39:16 +0900 Received: from fvc1-p.point.ne.jp (fvc1.point.ne.jp [210.188.175.76]) by vc4.point.ne.jp (Scanmail) with ESMTP id 071282EFD8; Thu, 15 Jan 2004 22:39:16 +0900 (JST) Received: from i-international.org ([218.230.5.109]) by fvc1-p.point.ne.jp with ESMTP id <20040115133915.PWKW11745.fvc1-p@i-international.org>; Thu, 15 Jan 2004 22:39:15 +0900 Message-ID: <400697FB.8050504@i-international.org> Date: Thu, 15 Jan 2004 22:39:07 +0900 From: "Rommel B. Ikeda" Organization: I-International User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6b) Gecko/20040115 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Seaman 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> <20040115115258.GA82601@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040115115258.GA82601@happy-idiot-talk.infracaninophile.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: NOQUEUE: SYSERR (root): host "localhost" unknown ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: r_ikeda@i-international.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Jan 2004 13:39:31 -0000 Matthew Seaman wrote: >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, >>>> >>>>I do not know if the "Subject Name" was the right one for it...because I really do not know what is going on... >>>> >>>>I have been seeing this message... >>>> >>>> 554.5.3.0 host "localhost" unknown: Invalid Argument >>>> Jan.... IBM-R40e sm-mta [417] NOQUEUE:SYSERR (root)"localhost" unknown: Invalid Argument >>>> >>>> >>>Sendmail is trying to convert the hostname 'localhost' into an IP >>>number. Not being able to do that is not good. >>> >>>You should have at least an entry for localhost in your /etc/hosts: >>> >>> 127.0.0.1 localhost >>> >>>You might also have the IPv6 equivalent: >>> >>> ::1 localhost >>> >>>and having the same information available from the DNS is quite handy: >>> >>> % host localhost. >>> localhost has address 127.0.0.1 >>> localhost has address ::1 >>> localhost mail is handled (pri=5) by localhost >>> >>>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... >> >> ::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 >> >>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 > > > >>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 > > > I am using an IBM Thinkpad...and I use it in the office and of course at home... When I am in the office...I get to use 192.168.1.35 as my IP address in our network... In my home...where only I can access this Email...I have an ADSL connection...and automatically gets to have and IP from my ISP's DHCP server... Is this correct if I will have my /etc/hosts as below: ::1 localhost 127.0.0.1 localhost IBM-R40e IBM-R40e.point.ne.jp 192.168.1.35 IBM-R40e IBM-R40e.point.ne.jp Thank you for any advice...and of course for the responses... >>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 > > I am not so sure about my knowledge in DNS...but I can assure you that I have read the chapter about DNS in "The Complete FreeBSD" and for almost many times now...but still...I don't seem to get it...too complicated for me...I will get back at it again...and maybe again... I have however...an /etc/resolv.conf which contains my primary and secondary DNS from my ISP...but everytime I use my PC in the office...it gets changed...maybe by our DHCP server... ...many thanks... Rommel Ikeda