Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 13:22:54 -0400
From:      Andrew J Caines <A.J.Caines@halplant.com>
To:        FreeBSD Questions <FreeBSD-Questions@FreeBSD.org>
Cc:        Thomas Widlundh <tw@ettnet.se>
Subject:   Re: localhost
Message-ID:  <20020630172254.GF319@hal9000.halplant.com>
In-Reply-To: <000a01c2203a$c4d59980$3e056dd4@chappe2>
References:  <000a01c2203a$c4d59980$3e056dd4@chappe2>

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

> Suddenly my freeBSD stops loading for a while with (/etc/messages):

I hope you mean /var/log/messages.

> sendmail[74]: My unqualified host name (localhost) unknown; sleeping
> for retry :  Unable to qualify my own domain name
> (localhost) -- using short name

What is your system's hostname..

# uname -n
# egrep ^hostname /etc/rc.conf
# egrep ^domain /etc/resolv.conf

..and what do you have for localhost and your system's hostname in /etc/hosts?

Yours should look something like this:

# uname -n
hal9000.halplant.com
# egrep ^hostname /etc/rc.conf
hostname="hal9000.halplant.com"
# egrep 'hal|localhost' /etc/hosts
127.0.0.1	localhost localhost.halplant.com
68.100.145.31	hal9000.halplant.com halplant.com www.halplant.com mail.halplant.com hal9000 hal
# egrep ^domain /etc/resolv.conf
[I don't have domain set - I use a search path]

I suspect you have your hostname aliased to the loopback address
(127.0.0.1) and have "localhost" first.


-Andrew-
-- 
 _______________________________________________________________________
| -Andrew J. Caines-   Unix Systems Engineer   A.J.Caines@halplant.com  |
| "They that can give up essential liberty to obtain a little temporary |
|  safety deserve neither liberty nor safety" - Benjamin Franklin, 1759 |

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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