From owner-freebsd-questions Mon Feb 19 13:46:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hecky.it.northwestern.edu (hecky.acns.nwu.edu [129.105.16.51]) by hub.freebsd.org (Postfix) with ESMTP id EEBE937B503 for ; Mon, 19 Feb 2001 13:46:36 -0800 (PST) Received: (from mailnull@localhost) by hecky.it.northwestern.edu (8.8.7/8.8.7) id PAA11062; Mon, 19 Feb 2001 15:46:34 -0600 (CST) Received: from confusion.net (dhcp089069.res-hall.nwu.edu [199.74.89.69]) by hecky.acns.nwu.edu via smap (V2.0) id xma010714; Mon, 19 Feb 01 15:46:07 -0600 Message-ID: <3A919449.A63F8329@confusion.net> Date: Mon, 19 Feb 2001 15:46:49 -0600 From: Laurence Berland X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dana Cc: freebsd-questions@FreeBSD.ORG Subject: Re: What is my hostname? References: <039901c09773$d7dea5e0$5e681a41@kc.rr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Dana wrote: > > When I installed freeBSD (4.2 Stable) I entered my host > as akadanak and the domain as kc.rr.com > rc.conf shows hostname=akadanak.kc.rr.com > > The problem is that MySQL and apache both say > cannot resolve hostname using localhost which is OK > by me. > However, when I try and use mail it tells me that the mail > was rejected because root@akadanak.kc.rr.com does > not exist. > > I connect to the internet just fine through roadrunner so > I have a hostname but what should it be so these things > will work? > > DanaDana, First off, it would be helpful to see the files /etc/hosts and /etc/host.conf. There should be an entry about localhost in the hosts file. You wont be able to send email using the name you made up, as it isnt actually in dns. To find out what hostname you actually have, you need to do a reverse IP lookup if your IP address (as given by ifconfig) was 199.101.117.33 you can do "dig PTR 33.117.101.199.in-addr.arpa" and it will tell you your host name. Note that the host name will change whenever your IP changes... Hope that helps, -- Laurence Berland Intern, Flooz.com Northwestern '04 stuyman@confusion.net http://www.isp.northwestern.edu/~laurence "The world has turned and left me here" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message