hostname on LAN with WAN

Joey Mingrone mingrone at
Sun Aug 3 07:29:19 PDT 2003


I believe you can just add an entry to /etc/hosts to specify the hostname 
for your box.  Something like:             constantine

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


>From: Constantine <cnst at>
>To: freebsd-questions at
>Subject: hostname on LAN with WAN
>Date: Sat, 02 Aug 2003 21:09:24 -0400
>MIME-Version: 1.0
>Received: from ([]) by 
> with Microsoft SMTPSVC(5.0.2195.5600); Sat, 2 Aug 
>2003 18:11:20 -0700
>Received: from ( [])by 
> (Postfix) with ESMTPid 62A4A561F9; Sat,  2 Aug 2003 
>18:10:06 -0700 (PDT)(envelope-from owner-freebsd-questions at
>Received: from (localhost [])by 
>(Postfix) with ESMTPid 4867D37B401; Sat,  2 Aug 2003 18:10:06 -0700 (PDT)
>Received: from ( [])by 
> (Postfix) with ESMTP id 1E58237B401for 
><freebsd-questions at>;Sat,  2 Aug 2003 18:09:58 -0700 (PDT)
>Received: from 
>([])by (Postfix) 
>with ESMTP id B3AC443FD7for <freebsd-questions at>;Sat,  2 Aug 
>2003 18:09:57 -0700 (PDT)	(envelope-from cnst at
>Received: from 
>([] 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: freebsd-questions at
>Message-ID: <3F2C60C4.8030307 at>
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB;rv:1.4) 
>X-Accept-Language: en-gb, ru, en-us, en
>X-BeenThere: freebsd-questions at
>X-Mailman-Version: 2.1.1
>Precedence: list
>List-Id: User questions <>
><>,<mailto:freebsd-questions-request at>
>List-Archive: <>
>List-Post: <mailto:freebsd-questions at>
>List-Help: <mailto:freebsd-questions-request at>
><>,<mailto:freebsd-questions-request at>
>Sender: owner-freebsd-questions at
>Errors-To: owner-freebsd-questions at
>Return-Path: owner-freebsd-questions at
>X-OriginalArrivalTime: 03 Aug 2003 01:11:20.0366 (UTC) 
>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.
>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): 
>queueing at 00: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): 
>SMTP+queueing at 00:30:00
>freebsd-questions at mailing list
>To unsubscribe, send any mail to 
>"freebsd-questions-unsubscribe at"

The new MSN 8: smart spam protection and 2 months FREE*

More information about the freebsd-questions mailing list