Constantine,
I believe you can just add an entry to /etc/hosts to specify the hostname
for your box. Something like:
192.168.0.2 constantine constantine.domainname.com.
Just make sure your sytstem is searching the hosts file before DNS (in
/etc/host.conf, hosts is above bind).
man hosts
man host.conf
Joey
From: Constantine <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: hostname on LAN with WAN
Date: Sat, 02 Aug 2003 21:09:24 -0400
MIME-Version: 1.0
Received: from mx2.freebsd.org ([216.136.204.119]) by
mc2-f26.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 2 Aug
2003 18:11:20 -0700
Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18])by
mx2.freebsd.org (Postfix) with ESMTPid 62A4A561F9; Sat, 2 Aug 2003
18:10:06 -0700 (PDT)(envelope-from [EMAIL PROTECTED])
Received: from hub.freebsd.org (localhost [127.0.0.1])by hub.freebsd.org
(Postfix) with ESMTPid 4867D37B401; Sat, 2 Aug 2003 18:10:06 -0700 (PDT)
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])by
hub.freebsd.org (Postfix) with ESMTP id 1E58237B401for
<[EMAIL PROTECTED]>;Sat, 2 Aug 2003 18:09:58 -0700 (PDT)
Received: from swan.mail.pas.earthlink.net
(swan.mail.pas.earthlink.net[207.217.120.123])by mx1.FreeBSD.org (Postfix)
with ESMTP id B3AC443FD7for <[EMAIL PROTECTED]>;Sat, 2 Aug
2003 18:09:57 -0700 (PDT) (envelope-from [EMAIL PROTECTED])
Received: from user14.net550.nc.sprint-hsd.net
([65.40.235.14]helo=rbcmail.ru)by swan.mail.pas.earthlink.net with esmtp
(Exim 3.33 #1)id 19j7Nl-0003np-00; Sat, 02 Aug 2003 18:09:57 -0700
X-Message-Info: JGTYoYF78jEHjJx36Oi8+YDSEg8qKPPD
Delivered-To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;rv:1.4)
Gecko/20030624
X-Accept-Language: en-gb, ru, en-us, en
X-BeenThere: [EMAIL PROTECTED]
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions
List-Unsubscribe:
<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,<mailto:[EMAIL PROTECTED]>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:[EMAIL PROTECTED]>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Subscribe:
<http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,<mailto:[EMAIL PROTECTED]>
Sender: [EMAIL PROTECTED]
Errors-To: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 03 Aug 2003 01:11:20.0366 (UTC)
FILETIME=[25DDC4E0:01C3595C]
Hello!
I am using my FreeBSD 4.8 in a local network, I do not have any routable
IPs assigned to the box, so what am I supposed to use as a hostname for
that FreeBSD box?
I have an internet connection (DSL modem with NAT), and I am using the
sendmail on the box, and the problem I have, is that during the boot time I
need to wait 2 minutes for the DNS-timeout.
I wanted to ask, how the hostname is meant to be set in my case.
Cheers,
Constantine.
maillog:
Aug 1 14:52:57 cnst sm-msp-queue[101]: My unqualified host name (cnst)
unknown; sleeping for retry
Aug 1 14:53:57 cnst sm-msp-queue[101]: unable to qualify my own domain
name (cnst) -- using short name
Aug 1 14:53:57 cnst sm-msp-queue[103]: starting daemon (8.12.8p1):
[EMAIL PROTECTED]:30:00
Aug 2 14:41:22 cnst sm-mta[99]: My unqualified host name (cnst) unknown;
sleeping for retry
Aug 2 14:42:22 cnst sm-mta[99]: unable to qualify my own domain name
(cnst) -- using short name
Aug 2 14:42:22 cnst sm-mta[100]: starting daemon (8.12.8p1):
[EMAIL PROTECTED]:30:00
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"[EMAIL PROTECTED]"
_
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"