Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Aug 2003 09:29:18 -0500
From:      "Joey Mingrone" <mingrone@hotmail.com>
To:        cnst@rbcmail.ru
Cc:        questions@freebsd.org
Subject:   Re: hostname on LAN with WAN
Message-ID:  <Sea2-F17DqrPEB5GA5c00038291@hotmail.com>

next in thread | raw e-mail | index | archive | help
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 <cnst@rbcmail.ru>
>To: freebsd-questions@freebsd.org
>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 owner-freebsd-questions@freebsd.org)
>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 
><freebsd-questions@freebsd.org>;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 <freebsd-questions@freebsd.org>;Sat,  2 Aug 
>2003 18:09:57 -0700 (PDT)	(envelope-from cnst@rbcmail.ru)
>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: freebsd-questions@freebsd.org
>Message-ID: <3F2C60C4.8030307@rbcmail.ru>
>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: freebsd-questions@freebsd.org
>X-Mailman-Version: 2.1.1
>Precedence: list
>List-Id: User questions <freebsd-questions.freebsd.org>
>List-Unsubscribe: 
><http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>;
>List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>;
>List-Post: <mailto:freebsd-questions@freebsd.org>
>List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
>List-Subscribe: 
><http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>;
>Sender: owner-freebsd-questions@freebsd.org
>Errors-To: owner-freebsd-questions@freebsd.org
>Return-Path: owner-freebsd-questions@freebsd.org
>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): 
>queueing@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@00:30:00
>
>_______________________________________________
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to 
>"freebsd-questions-unsubscribe@freebsd.org"

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail



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