hostname on LAN with WAN

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


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 at rbcmail.ru>
>To: freebsd-questions at 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 at 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 at 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 at freebsd.org>;Sat,  2 Aug 
>2003 18:09:57 -0700 (PDT)	(envelope-from cnst at 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 at freebsd.org
>Message-ID: <3F2C60C4.8030307 at 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 at 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 at freebsd.org?subject=unsubscribe>
>List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
>List-Post: <mailto:freebsd-questions at freebsd.org>
>List-Help: <mailto:freebsd-questions-request at freebsd.org?subject=help>
>List-Subscribe: 
><http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,<mailto:freebsd-questions-request at freebsd.org?subject=subscribe>
>Sender: owner-freebsd-questions at freebsd.org
>Errors-To: owner-freebsd-questions at freebsd.org
>Return-Path: owner-freebsd-questions at 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 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 freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to 
>"freebsd-questions-unsubscribe at freebsd.org"

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



More information about the freebsd-questions mailing list